From ff02cd54d44ff5767264fca22a3926c9cb135f57 Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Wed, 14 Feb 2018 09:14:12 -0800 Subject: [PATCH] Skip updating displacement if handler is already invalidated. Bug: 73338391 Change-Id: I091e8a682f95631e15b3f2cbe3e281c4f18003b9 --- .../src/com/android/quickstep/WindowTransformSwipeHandler.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java b/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java index 9bcbf34cef..91f4453299 100644 --- a/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java +++ b/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java @@ -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.