* commit '9aed2ae0bd03edcaef3dd3cac8795055cf8d2b43': Disable face unlock when returning from camera.
This commit is contained in:
@@ -99,6 +99,11 @@ public abstract class KeyguardActivityLauncher {
|
|||||||
|
|
||||||
public void launchCamera(Handler worker, Runnable onSecureCameraStarted) {
|
public void launchCamera(Handler worker, Runnable onSecureCameraStarted) {
|
||||||
LockPatternUtils lockPatternUtils = getLockPatternUtils();
|
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()) {
|
if (lockPatternUtils.isSecure()) {
|
||||||
// Launch the secure version of the camera
|
// Launch the secure version of the camera
|
||||||
if (wouldLaunchResolverActivity(SECURE_CAMERA_INTENT)) {
|
if (wouldLaunchResolverActivity(SECURE_CAMERA_INTENT)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user