Skip to content

Commit

Permalink
* 优化密码页键盘开关逻辑2
Browse files Browse the repository at this point in the history
  • Loading branch information
eritpchy committed Dec 7, 2022
1 parent 7139eb7 commit ae3de7c
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit ae3de7c

Please sign in to comment.