From ca755c384674d683c644a02c099c4a1bbdc3942f Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Fri, 6 Mar 2020 00:01:49 -0800 Subject: [PATCH] Fallback to predefined orientation handler if recents view isn't available Bug: 146176182 Test: Swipe up with 3p launcher to home Change-Id: Iaed42fb9ef598d65e1cf2d166cc343f888352d47 (cherry picked from commit e90adc47ef114e129a14382f30d84910ef394348) --- .../com/android/quickstep/FallbackSwipeHandler.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/quickstep/recents_ui_overrides/src/com/android/quickstep/FallbackSwipeHandler.java b/quickstep/recents_ui_overrides/src/com/android/quickstep/FallbackSwipeHandler.java index 65fba08831..ce67457658 100644 --- a/quickstep/recents_ui_overrides/src/com/android/quickstep/FallbackSwipeHandler.java +++ b/quickstep/recents_ui_overrides/src/com/android/quickstep/FallbackSwipeHandler.java @@ -41,6 +41,9 @@ import android.view.MotionEvent; import com.android.launcher3.R; import com.android.launcher3.anim.AnimationSuccessListener; import com.android.launcher3.anim.AnimatorPlaybackController; +import com.android.launcher3.touch.LandscapePagedViewHandler; +import com.android.launcher3.touch.PagedOrientationHandler; +import com.android.launcher3.touch.PortraitPagedViewHandler; import com.android.launcher3.util.ObjectWrapper; import com.android.quickstep.BaseActivityInterface.HomeAnimationFactory; import com.android.quickstep.GestureState.GestureEndTarget; @@ -470,8 +473,13 @@ public class FallbackSwipeHandler extends BaseSwipeUpHandler