Removes support for legacy anonymous Uphold cards.
This commit is contained in:
@@ -14,7 +14,6 @@ import org.json.JSONException;
|
||||
import org.json.JSONObject;
|
||||
|
||||
public class BraveRewardsBalance {
|
||||
public static final String WALLET_ANONYMOUS = "anonymous";
|
||||
public static final String WALLET_BLINDED = "blinded";
|
||||
|
||||
/**
|
||||
|
||||
@@ -42,7 +42,6 @@ public class BraveRewardsNativeWorker {
|
||||
public static final int REWARDS_NOTIFICATION_FAILED_CONTRIBUTION = 4;
|
||||
public static final int REWARDS_NOTIFICATION_IMPENDING_CONTRIBUTION = 5;
|
||||
public static final int REWARDS_NOTIFICATION_INSUFFICIENT_FUNDS = 6;
|
||||
public static final int REWARDS_NOTIFICATION_BACKUP_WALLET = 7;
|
||||
public static final int REWARDS_NOTIFICATION_TIPS_PROCESSED = 8;
|
||||
public static final int REWARDS_NOTIFICATION_ADS_ONBOARDING = 9;
|
||||
public static final int REWARDS_NOTIFICATION_VERIFIED_PUBLISHER = 10;
|
||||
|
||||
@@ -429,7 +429,6 @@ public class BraveRewardsPanel
|
||||
case BraveRewardsNativeWorker.REWARDS_NOTIFICATION_GRANT:
|
||||
case BraveRewardsNativeWorker.REWARDS_NOTIFICATION_GRANT_ADS:
|
||||
case BraveRewardsNativeWorker.REWARDS_NOTIFICATION_INSUFFICIENT_FUNDS:
|
||||
case BraveRewardsNativeWorker.REWARDS_NOTIFICATION_BACKUP_WALLET:
|
||||
case BraveRewardsNativeWorker.REWARDS_NOTIFICATION_TIPS_PROCESSED:
|
||||
case BraveRewardsNativeWorker.REWARDS_NOTIFICATION_ADS_ONBOARDING:
|
||||
case REWARDS_NOTIFICATION_NO_INTERNET:
|
||||
@@ -556,13 +555,6 @@ public class BraveRewardsPanel
|
||||
description = mPopupView.getResources().getString(
|
||||
R.string.brave_ui_insufficient_funds_desc);
|
||||
break;
|
||||
case BraveRewardsNativeWorker.REWARDS_NOTIFICATION_BACKUP_WALLET:
|
||||
actionNotificationButton.setText(mPopupView.getResources().getString(R.string.ok));
|
||||
notificationIcon = R.drawable.ic_info_rewards;
|
||||
title = mPopupView.getResources().getString(R.string.brave_ui_backup_wallet_msg);
|
||||
description =
|
||||
mPopupView.getResources().getString(R.string.brave_ui_backup_wallet_desc);
|
||||
break;
|
||||
case BraveRewardsNativeWorker.REWARDS_NOTIFICATION_TIPS_PROCESSED:
|
||||
actionNotificationButton.setText(mPopupView.getResources().getString(R.string.ok));
|
||||
title = mPopupView.getResources().getString(R.string.brave_ui_contribution_tips);
|
||||
@@ -1127,14 +1119,6 @@ public class BraveRewardsPanel
|
||||
|
||||
@Override
|
||||
public void OnGetLatestNotification(String id, int type, long timestamp, String[] args) {
|
||||
if (type == BraveRewardsNativeWorker.REWARDS_NOTIFICATION_BACKUP_WALLET) {
|
||||
if (mBraveRewardsNativeWorker != null) {
|
||||
mBraveRewardsNativeWorker.DeleteNotification(id);
|
||||
mBraveRewardsNativeWorker.GetAllNotifications();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
if (!mCurrentNotificationId.equals(REWARDS_PROMOTION_CLAIM_ERROR_ID)) {
|
||||
showNotification(id, type, timestamp, args);
|
||||
}
|
||||
|
||||
@@ -1096,9 +1096,7 @@ public abstract class BraveToolbarLayoutImpl extends ToolbarLayout
|
||||
return;
|
||||
}
|
||||
|
||||
if (type == BraveRewardsNativeWorker.REWARDS_NOTIFICATION_BACKUP_WALLET) {
|
||||
mBraveRewardsNativeWorker.DeleteNotification(id);
|
||||
} else if (type == BraveRewardsNativeWorker.REWARDS_NOTIFICATION_GRANT) {
|
||||
if (type == BraveRewardsNativeWorker.REWARDS_NOTIFICATION_GRANT) {
|
||||
// Set flag
|
||||
SharedPreferences sharedPreferences = ContextUtils.getAppSharedPreferences();
|
||||
SharedPreferences.Editor sharedPreferencesEditor = sharedPreferences.edit();
|
||||
|
||||
Reference in New Issue
Block a user