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

Commit 77aaa806 authored by Lucas Dupin's avatar Lucas Dupin
Browse files

Fixed issue where camera wouldn't launch

keyguardIsShowing, passed to NPV#canCameraGestureBeLaunched had the
wrong value because it was checking if SB was expanded visible
but ignoring the fact that bouncer would make it collapse.

Test: manual
Fixes: 138269798
Change-Id: Id259d42cbd7802614318d8f69c80470419f3b54b
Merged-In: Id259d42cbd7802614318d8f69c80470419f3b54b
parent 82aec2e9
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3787,7 +3787,8 @@ public class StatusBar extends SystemUI implements DemoMode,
            return;
        }
        if (!mNotificationPanel.canCameraGestureBeLaunched(
                mStatusBarKeyguardViewManager.isShowing() && mExpandedVisible)) {
                mStatusBarKeyguardViewManager.isShowing()
                        && (mExpandedVisible || mBouncerShowing))) {
            if (DEBUG_CAMERA_LIFT) Slog.d(TAG, "Can't launch camera right now, mExpandedVisible: " +
                    mExpandedVisible);
            return;