Skip to content
This repository has been archived by the owner on Dec 20, 2017. It is now read-only.

Commit

Permalink
Temporarily disabling the backup asset selection and thus the overdra…
Browse files Browse the repository at this point in the history
…ft protection
  • Loading branch information
bilthon committed Feb 27, 2017
1 parent abe73d1 commit 141f6a0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
Expand Up @@ -833,8 +833,8 @@ public void onFocusChanged() {

void setBackUpAsset() {
try {
backupAsset = Helper.fetchStringSharePref(this, getString(R.string.pref_backup_symbol));

// backupAsset = Helper.fetchStringSharePref(this, getString(R.string.pref_backup_symbol));
backupAsset = "";
if (backupAsset.isEmpty()) {
llBackupAsset.setVisibility(View.GONE);
} else {
Expand Down Expand Up @@ -1041,7 +1041,7 @@ public void run() {
}
});
} else {
findExchangeRate(id);
findExchangeRate(id);
}
} else {
findExchangeRate(id);
Expand Down
Expand Up @@ -617,15 +617,15 @@ else if (lc.code.equalsIgnoreCase(langCode))
spBackupAsset.setAdapter(adapterAccountAssets);

spBackupAsset.setSelection(0);

Boolean isBackupAsset = Helper.containKeySharePref(getApplicationContext(), getString(R.string.pref_backup_asset_selected));
if(isBackupAsset) {
if (Helper.fetchBoolianSharePref(getApplicationContext(), getString(R.string.pref_backup_asset_selected))) {
if (posBackupAssets != -9) {
spBackupAsset.setSelection(posBackupAssets);
}
}
}
spBackupAsset.setEnabled(false);
// Boolean isBackupAsset = Helper.containKeySharePref(getApplicationContext(), getString(R.string.pref_backup_asset_selected));
// if(isBackupAsset) {
// if (Helper.fetchBoolianSharePref(getApplicationContext(), getString(R.string.pref_backup_asset_selected))) {
// if (posBackupAssets != -9) {
// spBackupAsset.setSelection(posBackupAssets);
// }
// }
// }
}


Expand Down

0 comments on commit 141f6a0

Please sign in to comment.