diff options
author | Tony <twickham@google.com> | 2019-03-25 10:23:39 -0500 |
---|---|---|
committer | Tony <twickham@google.com> | 2019-03-28 15:09:25 -0500 |
commit | e4c2e2b86cf74013efc52f81ac8b1b6d85822646 (patch) | |
tree | 0d59a22b28e87caae6573b7348c0cbb6d341789b /quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/RecentsUiFactory.java | |
parent | 794a68e99850266d92b6daf25793b42308a66a8e (diff) | |
download | android_packages_apps_Trebuchet-e4c2e2b86cf74013efc52f81ac8b1b6d85822646.tar.gz android_packages_apps_Trebuchet-e4c2e2b86cf74013efc52f81ac8b1b6d85822646.tar.bz2 android_packages_apps_Trebuchet-e4c2e2b86cf74013efc52f81ac8b1b6d85822646.zip |
Add QuickSwitchTouchController on home
- Added QuickSwitchState, which we animate to when swiping right
on the nav bar from NORMAL state
- Task launches when the state transition to QuickSwitchState ends
Bug: 126596417
Change-Id: Id66650401d817703fc6d044fb26a25cccbc07e11
Diffstat (limited to 'quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/RecentsUiFactory.java')
-rw-r--r-- | quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/RecentsUiFactory.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/RecentsUiFactory.java b/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/RecentsUiFactory.java index f5702a73c..d0a2f2716 100644 --- a/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/RecentsUiFactory.java +++ b/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/RecentsUiFactory.java @@ -34,6 +34,7 @@ import com.android.launcher3.uioverrides.touchcontrollers.LandscapeEdgeSwipeCont import com.android.launcher3.uioverrides.touchcontrollers.OverviewToAllAppsTouchController; import com.android.launcher3.uioverrides.touchcontrollers.PortraitStatesTouchController; import com.android.launcher3.uioverrides.touchcontrollers.StatusBarTouchController; +import com.android.launcher3.uioverrides.touchcontrollers.QuickSwitchTouchController; import com.android.launcher3.uioverrides.touchcontrollers.TaskViewTouchController; import com.android.launcher3.util.TouchController; import com.android.launcher3.util.UiThreadHelper; @@ -66,6 +67,7 @@ public abstract class RecentsUiFactory { list.add(launcher.getDragController()); if (swipeUpToHome) { + list.add(new QuickSwitchTouchController(launcher)); list.add(new FlingAndHoldTouchController(launcher)); } else { if (launcher.getDeviceProfile().isVerticalBarLayout()) { @@ -74,6 +76,9 @@ public abstract class RecentsUiFactory { } else { list.add(new PortraitStatesTouchController(launcher, swipeUpEnabled /* allowDragToOverview */)); + if (swipeUpEnabled) { + list.add(new QuickSwitchTouchController(launcher)); + } } } |