From dcc651d091e381507c6b0d0f883ffb2cb8f271e4 Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Wed, 18 Mar 2020 11:17:23 -0700 Subject: [PATCH] Update window threshold in both directions - Only use the task flags when we should be using the home screen state Change-Id: I1b0f682eb9c2861b36953da7695c798c187db517 --- .../src/com/android/quickstep/LauncherSwipeHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickstep/recents_ui_overrides/src/com/android/quickstep/LauncherSwipeHandler.java b/quickstep/recents_ui_overrides/src/com/android/quickstep/LauncherSwipeHandler.java index 3328abcaf5..4c838209ee 100644 --- a/quickstep/recents_ui_overrides/src/com/android/quickstep/LauncherSwipeHandler.java +++ b/quickstep/recents_ui_overrides/src/com/android/quickstep/LauncherSwipeHandler.java @@ -588,7 +588,7 @@ public class LauncherSwipeHandler // 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);