fingerprint return from streetmode

This commit is contained in:
m2049r 2018-11-20 19:55:15 +01:00
parent 973472e0ef
commit c8322f5a83
No known key found for this signature in database
GPG Key ID: 4386E69AF260078D
2 changed files with 12 additions and 30 deletions

View File

@ -7,8 +7,8 @@ android {
applicationId "com.m2049r.xmrwallet"
minSdkVersion 21
targetSdkVersion 28
versionCode 153
versionName "1.10.3 'Node-O-matiC'"
versionCode 154
versionName "1.10.4 'Node-O-matiC'"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
externalNativeBuild {

View File

@ -290,36 +290,18 @@ public class WalletActivity extends BaseActivity implements WalletFragment.Liste
}
private void onDisableStreetMode() {
DialogInterface.OnClickListener dialogClickListener = new DialogInterface.OnClickListener() {
Helper.promptPassword(WalletActivity.this, getWallet().getName(), false, new Helper.PasswordAction() {
@Override
public void onClick(DialogInterface dialog, int which) {
switch (which) {
case DialogInterface.BUTTON_POSITIVE:
Helper.promptPassword(WalletActivity.this, getWallet().getName(), true, new Helper.PasswordAction() {
@Override
public void action(String walletName, String password, boolean fingerprintUsed) {
runOnUiThread(new Runnable() {
@Override
public void run() {
enableStreetMode(false);
updateStreetMode();
}
});
}
});
break;
case DialogInterface.BUTTON_NEGATIVE:
// do nothing
break;
}
public void action(String walletName, String password, boolean fingerprintUsed) {
runOnUiThread(new Runnable() {
@Override
public void run() {
enableStreetMode(false);
updateStreetMode();
}
});
}
};
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setMessage(getString(R.string.details_alert_message))
.setPositiveButton(getString(R.string.details_alert_yes), dialogClickListener)
.setNegativeButton(getString(R.string.details_alert_no), dialogClickListener)
.show();
});
}