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
This commit is contained in:
Lucas Dupin
2019-07-31 13:33:01 -07:00
parent 82aec2e913
commit 77aaa80663

View File

@@ -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;