Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9aed2ae0 authored by Ruben Brunk's avatar Ruben Brunk Committed by Android Git Automerger
Browse files

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

* commit 'e77d2a9c':
  Disable face unlock when returning from camera.
parents ea18624a e77d2a9c
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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)) {