Fix regression in swiping up from lockscreen

Bug: 134391878
Test: Swipe up to assistant from lockscreen

Change-Id: I32fe638de507775c5744344bc5e71509e4a5b0e1
This commit is contained in:
Winson Chung
2019-06-03 14:29:20 -07:00
parent b13d88af52
commit 241e63d2ff

View File

@@ -122,13 +122,21 @@ public class QuickStepContract {
* disabled.
*/
public static boolean isAssistantGestureDisabled(int sysuiStateFlags) {
// Disable when in screen pinning, immersive, the bouncer is showing, or the notifications
// are interactive
// Disable when in screen pinning, immersive, the bouncer is showing
int disableFlags = SYSUI_STATE_SCREEN_PINNING
| SYSUI_STATE_NAV_BAR_HIDDEN
| SYSUI_STATE_BOUNCER_SHOWING
| SYSUI_STATE_NOTIFICATION_PANEL_EXPANDED;
return (sysuiStateFlags & disableFlags) != 0;
| SYSUI_STATE_BOUNCER_SHOWING;
if ((sysuiStateFlags & disableFlags) != 0) {
return true;
}
// Disable when notifications are showing (only if unlocked)
if ((sysuiStateFlags & SYSUI_STATE_NOTIFICATION_PANEL_EXPANDED) != 0
&& (sysuiStateFlags & SYSUI_STATE_STATUS_BAR_KEYGUARD_SHOWING) == 0) {
return true;
}
return false;
}
/**