am e77d2a9c: Merge "Disable face unlock when returning from camera." into klp-dev

* commit 'e77d2a9c62e747902bc53d40e303214705702b00':
  Disable face unlock when returning from camera.
This commit is contained in:
Ruben Brunk
2013-11-06 15:26:48 -08:00
committed by Android Git Automerger

View File

@@ -99,6 +99,11 @@ public abstract class KeyguardActivityLauncher {
public void launchCamera(Handler worker, Runnable onSecureCameraStarted) {
LockPatternUtils lockPatternUtils = getLockPatternUtils();
// Workaround to avoid camera release/acquisition race when resuming face unlock
// after showing lockscreen camera (bug 11063890).
KeyguardUpdateMonitor.getInstance(getContext()).setAlternateUnlockEnabled(false);
if (lockPatternUtils.isSecure()) {
// Launch the secure version of the camera
if (wouldLaunchResolverActivity(SECURE_CAMERA_INTENT)) {