diff options
author | Jorim Jaggi <jjaggi@google.com> | 2015-09-22 12:44:47 -0700 |
---|---|---|
committer | Jorim Jaggi <jjaggi@google.com> | 2015-09-23 00:57:50 +0000 |
commit | 302475e93ce00287770aba9668acbe86e8b20a05 (patch) | |
tree | 954efbec18585104d8662b722c34b3e4f396751d /packages | |
parent | 1b68e8b711281a65c73006f10fdc2fdf2379ad60 (diff) | |
download | frameworks_base-302475e93ce00287770aba9668acbe86e8b20a05.zip frameworks_base-302475e93ce00287770aba9668acbe86e8b20a05.tar.gz frameworks_base-302475e93ce00287770aba9668acbe86e8b20a05.tar.bz2 |
Fix verifyUnlock
Bug: 23970549
Change-Id: I899d8a92050c257217fa8528c33cb4592ad6d76a
Diffstat (limited to 'packages')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java index 8a09b7c..055b5ef 100644 --- a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java +++ b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java @@ -920,9 +920,27 @@ public class KeyguardViewMediator extends SystemUI { } catch (RemoteException e) { Slog.w(TAG, "Failed to call onKeyguardExitResult(false)", e); } + } else if (!isSecure()) { + + // Keyguard is not secure, no need to do anything, and we don't need to reshow + // the Keyguard after the client releases the Keyguard lock. + mExternallyEnabled = true; + mNeedToReshowWhenReenabled = false; + updateInputRestricted(); + try { + callback.onKeyguardExitResult(true); + } catch (RemoteException e) { + Slog.w(TAG, "Failed to call onKeyguardExitResult(false)", e); + } } else { - mExitSecureCallback = callback; - verifyUnlockLocked(); + + // Since we prevent apps from hiding the Keyguard if we are secure, this should be + // a no-op as well. + try { + callback.onKeyguardExitResult(false); + } catch (RemoteException e) { + Slog.w(TAG, "Failed to call onKeyguardExitResult(false)", e); + } } } } |