diff options
author | Lucas Dupin <dupin@google.com> | 2017-12-04 14:29:10 -0800 |
---|---|---|
committer | Lucas Dupin <dupin@google.com> | 2018-01-11 13:15:31 -0800 |
commit | c80c67e7bc96691b6e3700bac49e819ad52db0ae (patch) | |
tree | e9115a436eca8b77eb4aa7ab20645a458c960549 /packages/SystemUI/src/com/android/keyguard/KeyguardPinBasedInputView.java | |
parent | c9c82958ab21cb987be8c57b69a1e43037c30543 (diff) |
Allow custom keyguard "prompt reason"
Adds the possibility of presenting a custom message on
the keyboard if you're trying to dismiss the keyguard.
This is particularly useful when you're showing the
bouncer because custom authentication (SmarLock)
failed.
Test: launch FLAG_SHOW_WHEN_LOCKED activity and
call KeyguardManager#requestDismissKeyguard
Fixes: 63940122
Change-Id: I0d88c0e59521887efa56d74874062b2b14970e4e
Diffstat (limited to 'packages/SystemUI/src/com/android/keyguard/KeyguardPinBasedInputView.java')
-rw-r--r-- | packages/SystemUI/src/com/android/keyguard/KeyguardPinBasedInputView.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardPinBasedInputView.java b/packages/SystemUI/src/com/android/keyguard/KeyguardPinBasedInputView.java index c04ae68dab36..6539ccffc61b 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardPinBasedInputView.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardPinBasedInputView.java @@ -103,7 +103,7 @@ public abstract class KeyguardPinBasedInputView extends KeyguardAbsKeyInputView } @Override - protected int getPromtReasonStringRes(int reason) { + protected int getPromptReasonStringRes(int reason) { switch (reason) { case PROMPT_REASON_RESTART: return R.string.kg_prompt_reason_restart_pin; |