From a06ad834d08a877d2225dd7fb09c898d4da69170 Mon Sep 17 00:00:00 2001 From: Tony Wickham Date: Tue, 3 Dec 2019 22:29:06 -0600 Subject: [PATCH] Allow quick switch from 3P launcher home in 2 button mode Only the FallbackSwipeHandler supports quickswitch mode on the home screen, but we only used that handler for fully gestural mode. Now we also use that handler for 2-button mode if both of these conditions are met: - User is on the home screen - User swipes right on the nav region (instead of up) Also fix issues with continuous quick switch gestures by setting the appropriate end target NEW_TASK instead of HOME. Bug: 140467002 Change-Id: I8f327638b48cf4c0acb1ebe265b7846afac6759b --- .../quickstep/FallbackSwipeHandler.java | 2 +- .../quickstep/TouchInteractionService.java | 26 ++++++++++++++++--- 2 files changed, 24 insertions(+), 4 deletions(-) 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 c939de88f5..714de28fd1 100644 --- a/quickstep/recents_ui_overrides/src/com/android/quickstep/FallbackSwipeHandler.java +++ b/quickstep/recents_ui_overrides/src/com/android/quickstep/FallbackSwipeHandler.java @@ -266,7 +266,7 @@ public class FallbackSwipeHandler extends BaseSwipeUpHandler