commit | ff02cd54d44ff5767264fca22a3926c9cb135f57 | [log] [tgz] |
---|---|---|
author | Winson Chung <winsonc@google.com> | Wed Feb 14 09:14:12 2018 -0800 |
committer | Winson Chung <winsonc@google.com> | Wed Feb 14 09:16:26 2018 -0800 |
tree | d26a9047fb70e8bb6e74da443fab61c55ccb5bf4 | |
parent | f6c65d7e54f34c4b38160d07f91be5ab13c9c242 [diff] |
Skip updating displacement if handler is already invalidated. Bug: 73338391 Change-Id: I091e8a682f95631e15b3f2cbe3e281c4f18003b9
diff --git a/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java b/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java index 9bcbf34..91f4453 100644 --- a/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java +++ b/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
@@ -461,6 +461,9 @@ 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.