Update window threshold in both directions

- Only use the task flags when we should be using the home screen state

Change-Id: I1b0f682eb9c2861b36953da7695c798c187db517
This commit is contained in:
Winson Chung
2020-03-18 11:17:23 -07:00
parent 0465b4d71e
commit dcc651d091
@@ -588,7 +588,7 @@ public class LauncherSwipeHandler<T extends BaseDraggingActivity>
// We will handle the sysui flags based on the centermost task view.
if (mRecentsAnimationController != null) {
mRecentsAnimationController.setWindowThresholdCrossed(centermostTaskFlags != 0
|| useHomeScreenFlags);
&& useHomeScreenFlags);
}
int sysuiFlags = useHomeScreenFlags ? 0 : centermostTaskFlags;
mActivity.getSystemUiController().updateUiState(UI_STATE_OVERVIEW, sysuiFlags);