diff options
author | Dave Mankoff <mankoff@google.com> | 2020-09-22 00:24:04 +0000 |
---|---|---|
committer | Dave Mankoff <mankoff@google.com> | 2020-09-22 13:24:51 +0000 |
commit | b00c929394cb6bce158265af9606a8eb5a79e47a (patch) | |
tree | 7f5e2b1426f55b3b2707a9d518e8214fa2094b87 /packages/SystemUI/src/com/android/keyguard/KeyguardPINView.java | |
parent | 7a481c318e9ab58ef06aa88514554b55078499dc (diff) |
Revert "9/N Clean Up Keyguard Class Structure"
Revert submission 12585643-b166448040-keyguard-message-area
Reason for revert: http://b/169081305 & http://b/169020145
Reverted Changes:
I6fa05012c:4/N Setup Controller fo KeyguardSecurityContainer....
Iecf265744:5/N Add KeyguardSecurityViewFlipperController.
I90ab99b2f:6/N Add Controller for KeyguardPatternView
I4b74eddd1:7/N controllers for remaining Keyguard Password Vi...
I805286374:8/N Remove View Injection from KeyguardMessageArea...
I362755980:9/N Clean Up Keyguard Class Structure
Change-Id: Ic62f199a51a15d8384450b8f181f3c5a0b988d7f
Fixes: 169081305
Fixes: 169020145
Diffstat (limited to 'packages/SystemUI/src/com/android/keyguard/KeyguardPINView.java')
-rw-r--r-- | packages/SystemUI/src/com/android/keyguard/KeyguardPINView.java | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardPINView.java b/packages/SystemUI/src/com/android/keyguard/KeyguardPINView.java index 580d7043a220..bfa187ea099b 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardPINView.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardPINView.java @@ -103,6 +103,28 @@ 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(); + mCallback.onCancelClicked(); + }); + } + } + + @Override + public void onPause() { + + } + + @Override + public void onResume(int reason) { + + } + + @Override + public void showUsabilityHint() { } @Override @@ -126,6 +148,11 @@ public class KeyguardPINView extends KeyguardPinBasedInputView { }); } + @Override + public boolean startDisappearAnimation(final Runnable finishRunnable) { + return false; + } + public boolean startDisappearAnimation(boolean needsSlowUnlockTransition, final Runnable finishRunnable) { |