fingerprint return from streetmode
This commit is contained in:
parent
973472e0ef
commit
c8322f5a83
|
@ -7,8 +7,8 @@ android {
|
||||||
applicationId "com.m2049r.xmrwallet"
|
applicationId "com.m2049r.xmrwallet"
|
||||||
minSdkVersion 21
|
minSdkVersion 21
|
||||||
targetSdkVersion 28
|
targetSdkVersion 28
|
||||||
versionCode 153
|
versionCode 154
|
||||||
versionName "1.10.3 'Node-O-matiC'"
|
versionName "1.10.4 'Node-O-matiC'"
|
||||||
|
|
||||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||||
externalNativeBuild {
|
externalNativeBuild {
|
||||||
|
|
|
@ -290,36 +290,18 @@ public class WalletActivity extends BaseActivity implements WalletFragment.Liste
|
||||||
}
|
}
|
||||||
|
|
||||||
private void onDisableStreetMode() {
|
private void onDisableStreetMode() {
|
||||||
DialogInterface.OnClickListener dialogClickListener = new DialogInterface.OnClickListener() {
|
Helper.promptPassword(WalletActivity.this, getWallet().getName(), false, new Helper.PasswordAction() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(DialogInterface dialog, int which) {
|
public void action(String walletName, String password, boolean fingerprintUsed) {
|
||||||
switch (which) {
|
runOnUiThread(new Runnable() {
|
||||||
case DialogInterface.BUTTON_POSITIVE:
|
@Override
|
||||||
Helper.promptPassword(WalletActivity.this, getWallet().getName(), true, new Helper.PasswordAction() {
|
public void run() {
|
||||||
@Override
|
enableStreetMode(false);
|
||||||
public void action(String walletName, String password, boolean fingerprintUsed) {
|
updateStreetMode();
|
||||||
runOnUiThread(new Runnable() {
|
}
|
||||||
@Override
|
});
|
||||||
public void run() {
|
|
||||||
enableStreetMode(false);
|
|
||||||
updateStreetMode();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
break;
|
|
||||||
case DialogInterface.BUTTON_NEGATIVE:
|
|
||||||
// do nothing
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
});
|
||||||
|
|
||||||
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();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue