commit | 56ae76deb0fe1e6e66fc2c3332e3a50de060d008 | [log] [tgz] |
---|---|---|
author | Tony <twickham@google.com> | Fri Apr 19 17:11:01 2019 -0700 |
committer | android-build-merger <android-build-merger@google.com> | Fri Apr 19 17:11:01 2019 -0700 |
tree | 20d96773b36517e05fa64c0c5af7843e1641fd10 | |
parent | 8138888197a91fa2584b84c7781c7f04f3de6851 [diff] | |
parent | a22c2b5d088135bed83ae4c21794bba038c2c55a [diff] |
Merge "Jump to the nearest page to launch when swiping down on shelf" into ub-launcher3-qt-dev am: a22c2b5d08 Change-Id: If83d18066c57cf954a6f691f5a580bc332984277
diff --git a/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/touchcontrollers/PortraitOverviewStateTouchHelper.java b/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/touchcontrollers/PortraitOverviewStateTouchHelper.java index 5337c39..20a2487 100644 --- a/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/touchcontrollers/PortraitOverviewStateTouchHelper.java +++ b/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/touchcontrollers/PortraitOverviewStateTouchHelper.java
@@ -75,7 +75,8 @@ * @return the animation */ PendingAnimation createSwipeDownToTaskAppAnimation(long duration) { - TaskView taskView = mRecentsView.getTaskViewAt(mRecentsView.getNextPage()); + mRecentsView.setCurrentPage(mRecentsView.getPageNearestToCenterOfScreen()); + TaskView taskView = mRecentsView.getTaskViewAt(mRecentsView.getCurrentPage()); if (taskView == null) { throw new IllegalStateException("There is no task view to animate to."); }