Exit from quick scrub if unable to launch task onQuickScrubEnd

Bug: 76152304
Change-Id: I142b1a894d4f1e2dcf18631e0599482ff4845995
This commit is contained in:
Tony Wickham
2018-03-22 12:18:27 -07:00
parent edc6fb4061
commit a6db64f426
@@ -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())