Updated on 2026-08-14

This commit is contained in:
Tangem 2018-06-15 14:31:28 +03:00
parent 42bddc488d
commit 2ed8c3fcc2
10 changed files with 169 additions and 312 deletions

View file

@ -39,8 +39,6 @@ import javax.crypto.NoSuchPaddingException;
import javax.crypto.SecretKey;
import javax.crypto.spec.IvParameterSpec;
//import com.afollestad.materialdialogs.AlertDialogWrapper;
public class SavePINActivity extends AppCompatActivity implements FingerprintHelper.FingerprintHelperListener {
private TextView tvPIN;
@ -212,12 +210,7 @@ public class SavePINActivity extends AppCompatActivity implements FingerprintHel
if (UsePIN2) {
if (PINStorage.haveEncryptedPIN2()) {
if (!testFingerPrintSettings()) {
tvPIN.postDelayed(new Runnable() {
@Override
public void run() {
finish();
}
}, 2000);
tvPIN.postDelayed(this::finish, 2000);
return;
}
onConfirmAction = OnConfirmAction.Delete;
@ -230,12 +223,7 @@ public class SavePINActivity extends AppCompatActivity implements FingerprintHel
} else {
if (chkUseFingerprint.isChecked() || PINStorage.haveEncryptedPIN()) {
if (!testFingerPrintSettings()) {
tvPIN.postDelayed(new Runnable() {
@Override
public void run() {
finish();
}
}, 2000);
tvPIN.postDelayed(this::finish, 2000);
return;
}
onConfirmAction = OnConfirmAction.Delete;
@ -249,7 +237,6 @@ public class SavePINActivity extends AppCompatActivity implements FingerprintHel
}
}
@Override
public void authenticationFailed(String error) {
print(error);