Merge "Jump to the nearest page to launch when swiping down on shelf" into ub-launcher3-qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
a22c2b5d08
+2
-1
@@ -75,7 +75,8 @@ public final class PortraitOverviewStateTouchHelper {
|
||||
* @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.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user