Don't cancel unlock on possible wrong password

This commit is contained in:
MrLetsplay 2023-10-07 14:01:55 +02:00
parent b507fbc92e
commit a04318bc46
Signed by: mr
SSH Key Fingerprint: SHA256:92jBH80vpXyaZHjaIl47pjRq+Yt7XGTArqQg1V7hSqg
2 changed files with 1 additions and 10 deletions

View File

@ -73,7 +73,7 @@ public class UnlockActivity extends BaseActivity {
OTPDatabase.loadDatabase(this, key); OTPDatabase.loadDatabase(this, key);
success(); success();
}catch(CryptoException e) { }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) { } catch (OTPDatabaseException e) {
DialogUtil.showErrorDialog(this, getString(R.string.error_unlock_other), e, this::failure); DialogUtil.showErrorDialog(this, getString(R.string.error_unlock_other), e, this::failure);
} }

View File

@ -13,15 +13,6 @@
android:text="@string/unlock_authenticator" android:text="@string/unlock_authenticator"
android:textSize="21sp" android:textSize="21sp"
android:textStyle="bold" android:textStyle="bold"
app:layout_constraintBottom_toTopOf="@+id/unlock_password_text"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
<TextView
android:id="@+id/unlock_password_text"
android:layout_width="0dp"
android:layout_height="19dp"
android:text="@string/password"
app:layout_constraintBottom_toTopOf="@+id/unlock_password_layout" app:layout_constraintBottom_toTopOf="@+id/unlock_password_layout"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" /> app:layout_constraintStart_toStartOf="parent" />