Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
eritpchy committed Nov 16, 2023
1 parent 06812ce commit 9d4f21d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ android {
minSdkVersion 14
targetSdkVersion 33
versionCode 30
versionName "5.0.0"
versionName "5.0.1"
buildConfigField "String", "APP_PRODUCT_NAME", "\"FingerprintPay\""
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public void onFailed(FingerprintIdentifyFailInfo failInfo) {
return;
}
if (fingerprintScanStateReady) {
NotifyUtils.notifyFingerprint(context, Lang.getString(R.id.toast_fingerprint_retry_ended));
NotifyUtils.notifyFingerprint(context, Lang.getString(R.id.toast_fingerprint_retry_ended) + " " + failInfo);
}
L.d("多次尝试错误,请确认指纹", failInfo);
identifyListener.onFailed(XFingerprintIdentify.this, failInfo);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,16 +226,16 @@ public void onInited(XFingerprintIdentify identify) {
}

@Override
public void onSucceed(XFingerprintIdentify target, Cipher cipher) {
super.onSucceed(target, cipher);
NotifyUtils.notifyFingerprint(context, Lang.getString(R.id.toast_fingerprint_password_enc_success));
String encrypted = AESUtils.encrypt(cipher, password);
config.setPasswordEncrypted(encrypted);
config.setPasswordIV(AESUtils.byte2hex(cipher.getIV()));

passwordInputDialog.dismiss();
fingerprintVerificationDialog.dismiss();
}
public void onSucceed(XFingerprintIdentify target, Cipher cipher) {
super.onSucceed(target, cipher);
NotifyUtils.notifyFingerprint(context, Lang.getString(R.id.toast_fingerprint_password_enc_success));
config.setPasswordEncrypted(AESUtils.encrypt(cipher, password));
config.setPasswordIV(AESUtils.byte2hex(cipher.getIV()));
config.commit();

passwordInputDialog.dismiss();
fingerprintVerificationDialog.dismiss();
}

@Override
public void onFailed(XFingerprintIdentify target, FingerprintIdentifyFailInfo failInfo) {
Expand Down

0 comments on commit 9d4f21d

Please sign in to comment.