From a6db64f426bc9d132516ef291212e2ced6ba16bd Mon Sep 17 00:00:00 2001 From: Tony Wickham Date: Thu, 22 Mar 2018 12:18:27 -0700 Subject: [PATCH] Exit from quick scrub if unable to launch task onQuickScrubEnd Bug: 76152304 Change-Id: I142b1a894d4f1e2dcf18631e0599482ff4845995 --- quickstep/src/com/android/quickstep/QuickScrubController.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/quickstep/src/com/android/quickstep/QuickScrubController.java b/quickstep/src/com/android/quickstep/QuickScrubController.java index d263fbfc6d..986eb48f52 100644 --- a/quickstep/src/com/android/quickstep/QuickScrubController.java +++ b/quickstep/src/com/android/quickstep/QuickScrubController.java @@ -87,6 +87,9 @@ public class QuickScrubController implements OnAlarmListener { TaskView taskView = ((TaskView) mRecentsView.getPageAt(page)); if (taskView != null) { taskView.launchTask(true); + } else { + // Break out of quick scrub so user can interact with launcher. + mActivity.onBackPressed(); } }; int snapDuration = Math.abs(page - mRecentsView.getPageNearestToCenterOfScreen())