Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 56ae76de authored by Tony's avatar Tony Committed by android-build-merger
Browse files

Merge "Jump to the nearest page to launch when swiping down on shelf" into ub-launcher3-qt-dev

am: a22c2b5d

Change-Id: If83d18066c57cf954a6f691f5a580bc332984277
parents 81388881 a22c2b5d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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.");
        }