[automerger] Cancelling quickscrub state incease we missed quickscrub end event am: 0fb1e4b5a7
Change-Id: I0ba02df3d089cd26356aab32bd1f7a7249d1702f
This commit is contained in:
commit
1b905daf5c
|
@ -76,4 +76,10 @@ public class FastOverviewState extends OverviewState {
|
|||
return Math.min(Math.min(dp.availableHeightPx / usedHeight,
|
||||
dp.availableWidthPx / usedWidth), MAX_PREVIEW_SCALE_UP);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStateDisabled(Launcher launcher) {
|
||||
super.onStateDisabled(launcher);
|
||||
launcher.<RecentsView>getOverviewPanel().getQuickScrubController().cancelActiveQuickscrub();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -132,6 +132,17 @@ public class QuickScrubController implements OnAlarmListener {
|
|||
}
|
||||
}
|
||||
|
||||
public void cancelActiveQuickscrub() {
|
||||
if (!mInQuickScrub) {
|
||||
return;
|
||||
}
|
||||
Log.d(TAG, "Quickscrub was active, cancelling");
|
||||
mInQuickScrub = false;
|
||||
mActivityControlHelper = null;
|
||||
mOnFinishedTransitionToQuickScrubRunnable = null;
|
||||
mRecentsView.setNextPageSwitchRunnable(null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes the UI for quick scrub, returns true if success.
|
||||
*/
|
||||
|
|
|
@ -700,6 +700,7 @@ public class WindowTransformSwipeHandler<T extends BaseDraggingActivity> {
|
|||
|
||||
mRecentsView.setRunningTaskHidden(false);
|
||||
mRecentsView.setRunningTaskIconScaledDown(false /* isScaledDown */, false /* animate */);
|
||||
mQuickScrubController.cancelActiveQuickscrub();
|
||||
}
|
||||
|
||||
private void notifyTransitionCancelled() {
|
||||
|
|
Loading…
Reference in New Issue