summaryrefslogtreecommitdiff
path: root/com/android/keyguard/KeyguardPINView.java
diff options
context:
space:
mode:
Diffstat (limited to 'com/android/keyguard/KeyguardPINView.java')
-rw-r--r--com/android/keyguard/KeyguardPINView.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/com/android/keyguard/KeyguardPINView.java b/com/android/keyguard/KeyguardPINView.java
index c1cff9e8..adb24601 100644
--- a/com/android/keyguard/KeyguardPINView.java
+++ b/com/android/keyguard/KeyguardPINView.java
@@ -107,6 +107,13 @@ public class KeyguardPINView extends KeyguardPinBasedInputView {
new View[]{
null, mEcaView, null
}};
+
+ View cancelBtn = findViewById(R.id.cancel_button);
+ if (cancelBtn != null) {
+ cancelBtn.setOnClickListener(view -> {
+ mCallback.reset();
+ });
+ }
}
@Override