commit | a6db64f426bc9d132516ef291212e2ced6ba16bd | [log] [tgz] |
---|---|---|
author | Tony Wickham <twickham@google.com> | Thu Mar 22 12:18:27 2018 -0700 |
committer | Tony Wickham <twickham@google.com> | Thu Mar 22 12:20:22 2018 -0700 |
tree | 41890d2b5e67e1f19accdbfb8493c0d48d6e2872 | |
parent | edc6fb4061c1e2dfdf80ef055ff18a25db3e77ab [diff] |
Exit from quick scrub if unable to launch task onQuickScrubEnd Bug: 76152304 Change-Id: I142b1a894d4f1e2dcf18631e0599482ff4845995
diff --git a/quickstep/src/com/android/quickstep/QuickScrubController.java b/quickstep/src/com/android/quickstep/QuickScrubController.java index d263fbf..986eb48 100644 --- a/quickstep/src/com/android/quickstep/QuickScrubController.java +++ b/quickstep/src/com/android/quickstep/QuickScrubController.java
@@ -87,6 +87,9 @@ 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())