summaryrefslogtreecommitdiff
path: root/com/android/keyguard/KeyguardPasswordView.java
diff options
context:
space:
mode:
Diffstat (limited to 'com/android/keyguard/KeyguardPasswordView.java')
-rw-r--r--com/android/keyguard/KeyguardPasswordView.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/com/android/keyguard/KeyguardPasswordView.java b/com/android/keyguard/KeyguardPasswordView.java
index 75c52d8e..7cc37c47 100644
--- a/com/android/keyguard/KeyguardPasswordView.java
+++ b/com/android/keyguard/KeyguardPasswordView.java
@@ -205,6 +205,13 @@ public class KeyguardPasswordView extends KeyguardAbsKeyInputView
}
});
+ View cancelBtn = findViewById(R.id.cancel_button);
+ if (cancelBtn != null) {
+ cancelBtn.setOnClickListener(view -> {
+ mCallback.reset();
+ });
+ }
+
// If there's more than one IME, enable the IME switcher button
updateSwitchImeButton();