From 05167371467a3800c8245a63476cae42be303662 Mon Sep 17 00:00:00 2001 From: Vinit Nayak Date: Tue, 5 Oct 2021 15:11:51 -0700 Subject: [PATCH] Reset state after split launch animation finishes Previously we were clearing SplitSelectStateController state too soon for fake landscape case where as soon as the tasks launch the device does a rotation animation since the new split tasks are in landscape. Move restting state after animation finishes. Fixes: 201980666 Change-Id: I23efd59fad444c47ae6c2048888a8570f22610fd --- .../quickstep/util/SplitSelectStateController.java | 7 ++----- .../src/com/android/quickstep/views/RecentsView.java | 8 +++++--- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/quickstep/src/com/android/quickstep/util/SplitSelectStateController.java b/quickstep/src/com/android/quickstep/util/SplitSelectStateController.java index e9a695d328..1dae2c8712 100644 --- a/quickstep/src/com/android/quickstep/util/SplitSelectStateController.java +++ b/quickstep/src/com/android/quickstep/util/SplitSelectStateController.java @@ -163,10 +163,8 @@ public class SplitSelectStateController { if (mSuccessCallback != null) { mSuccessCallback.accept(true); } + resetState(); })); - - // After successful launch, call resetState - resetState(); } @Override @@ -175,9 +173,8 @@ public class SplitSelectStateController { if (mSuccessCallback != null) { mSuccessCallback.accept(false); } + resetState(); }); - - resetState(); } } diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java index e1a389582f..e9c669bdfb 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/src/com/android/quickstep/views/RecentsView.java @@ -3918,7 +3918,6 @@ public abstract class RecentsView