From ae3de7ce6fa2cc66567959f304017b0f4cfcc29b Mon Sep 17 00:00:00 2001 From: Jason Date: Wed, 7 Dec 2022 14:24:37 +0800 Subject: [PATCH] =?UTF-8?q?*=20=E4=BC=98=E5=8C=96=E5=AF=86=E7=A0=81?= =?UTF-8?q?=E9=A1=B5=E9=94=AE=E7=9B=98=E5=BC=80=E5=85=B3=E9=80=BB=E8=BE=91?= =?UTF-8?q?2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../surcumference/fingerprint/view/PasswordInputView.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/src/main/java/com/surcumference/fingerprint/view/PasswordInputView.java b/app/src/main/java/com/surcumference/fingerprint/view/PasswordInputView.java index 8b2d0f6..c1490ca 100644 --- a/app/src/main/java/com/surcumference/fingerprint/view/PasswordInputView.java +++ b/app/src/main/java/com/surcumference/fingerprint/view/PasswordInputView.java @@ -1,5 +1,6 @@ package com.surcumference.fingerprint.view; +import android.app.AlertDialog; import android.content.Context; import android.graphics.Color; import android.text.Editable; @@ -123,6 +124,13 @@ protected void onAttachedToWindow() { }, 200); } + @Override + public AlertDialog showInDialog() { + AlertDialog dialog = super.showInDialog(); + dialog.setCanceledOnTouchOutside(false); + return dialog; + } + @Override public String getDialogTitle() { return Lang.getString(R.id.enter_password);