Loading quickstep/src/com/android/quickstep/QuickScrubController.java +4 −1 Original line number Diff line number Diff line Loading @@ -84,7 +84,10 @@ public class QuickScrubController implements OnAlarmListener { } int page = mRecentsView.getNextPage(); Runnable launchTaskRunnable = () -> { ((TaskView) mRecentsView.getPageAt(page)).launchTask(true); TaskView taskView = ((TaskView) mRecentsView.getPageAt(page)); if (taskView != null) { taskView.launchTask(true); } }; int snapDuration = Math.abs(page - mRecentsView.getPageNearestToCenterOfScreen()) * QUICKSCRUB_END_SNAP_DURATION_PER_PAGE; Loading Loading
quickstep/src/com/android/quickstep/QuickScrubController.java +4 −1 Original line number Diff line number Diff line Loading @@ -84,7 +84,10 @@ public class QuickScrubController implements OnAlarmListener { } int page = mRecentsView.getNextPage(); Runnable launchTaskRunnable = () -> { ((TaskView) mRecentsView.getPageAt(page)).launchTask(true); TaskView taskView = ((TaskView) mRecentsView.getPageAt(page)); if (taskView != null) { taskView.launchTask(true); } }; int snapDuration = Math.abs(page - mRecentsView.getPageNearestToCenterOfScreen()) * QUICKSCRUB_END_SNAP_DURATION_PER_PAGE; Loading