Skip updating displacement if handler is already invalidated.

Bug: 73338391
Change-Id: I091e8a682f95631e15b3f2cbe3e281c4f18003b9
This commit is contained in:
Winson Chung
2018-02-14 09:14:12 -08:00
parent f6c65d7e54
commit ff02cd54d4
@@ -461,6 +461,9 @@ public class WindowTransformSwipeHandler extends BaseSwipeInteractionHandler {
if (mLauncherTransitionController != null) {
Runnable runOnUi = () -> {
if (mLauncherTransitionController == null) {
return;
}
mLauncherTransitionController.setPlayFraction(shift);
// Make sure the window follows the first task if it moves, e.g. during quick scrub.