From a04318bc46cb78468719db54be1465a04525b25e Mon Sep 17 00:00:00 2001 From: MrLetsplay Date: Sat, 7 Oct 2023 14:01:55 +0200 Subject: [PATCH] Don't cancel unlock on possible wrong password --- .../cringe_studios/code_guard/unlock/UnlockActivity.java | 2 +- app/src/main/res/layout/activity_unlock.xml | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/app/src/main/java/com/cringe_studios/code_guard/unlock/UnlockActivity.java b/app/src/main/java/com/cringe_studios/code_guard/unlock/UnlockActivity.java index f2b9631..a47d11d 100644 --- a/app/src/main/java/com/cringe_studios/code_guard/unlock/UnlockActivity.java +++ b/app/src/main/java/com/cringe_studios/code_guard/unlock/UnlockActivity.java @@ -73,7 +73,7 @@ public class UnlockActivity extends BaseActivity { OTPDatabase.loadDatabase(this, key); success(); }catch(CryptoException e) { - DialogUtil.showErrorDialog(this, getString(R.string.error_unlock_crypto), this::failure); + DialogUtil.showErrorDialog(this, getString(R.string.error_unlock_crypto), (Runnable) null); } catch (OTPDatabaseException e) { DialogUtil.showErrorDialog(this, getString(R.string.error_unlock_other), e, this::failure); } diff --git a/app/src/main/res/layout/activity_unlock.xml b/app/src/main/res/layout/activity_unlock.xml index 80f3902..7e7e2e6 100644 --- a/app/src/main/res/layout/activity_unlock.xml +++ b/app/src/main/res/layout/activity_unlock.xml @@ -13,15 +13,6 @@ android:text="@string/unlock_authenticator" android:textSize="21sp" android:textStyle="bold" - app:layout_constraintBottom_toTopOf="@+id/unlock_password_text" - app:layout_constraintEnd_toEndOf="parent" - app:layout_constraintStart_toStartOf="parent" /> - -