Skip to content

Commit ae3de7c

Browse files
committed
* 优化密码页键盘开关逻辑2
1 parent 7139eb7 commit ae3de7c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

app/src/main/java/com/surcumference/fingerprint/view/PasswordInputView.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.surcumference.fingerprint.view;
22

3+
import android.app.AlertDialog;
34
import android.content.Context;
45
import android.graphics.Color;
56
import android.text.Editable;
@@ -123,6 +124,13 @@ protected void onAttachedToWindow() {
123124
}, 200);
124125
}
125126

127+
@Override
128+
public AlertDialog showInDialog() {
129+
AlertDialog dialog = super.showInDialog();
130+
dialog.setCanceledOnTouchOutside(false);
131+
return dialog;
132+
}
133+
126134
@Override
127135
public String getDialogTitle() {
128136
return Lang.getString(R.id.enter_password);

0 commit comments

Comments
 (0)