am 6da88610: am 302475e9: Fix verifyUnlock

* commit '6da88610cea1e5f815e2d56979f54808c02a652f':
  Fix verifyUnlock
This commit is contained in:
Jorim Jaggi
2015-09-23 02:06:03 +00:00
committed by Android Git Automerger

View File

@@ -920,9 +920,27 @@ public class KeyguardViewMediator extends SystemUI {
} catch (RemoteException e) { } catch (RemoteException e) {
Slog.w(TAG, "Failed to call onKeyguardExitResult(false)", 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 { } 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);
}
} }
} }
} }