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" /> - -