From 97f9bd575ab82c1f2f7868fa16f39f07381c3a88 Mon Sep 17 00:00:00 2001 From: Vinit Nayak Date: Thu, 18 Nov 2021 14:06:27 -0800 Subject: [PATCH] Reset split selection state when RecentsView resets * We weren't calling reset on the views involved in split selection when recents view gets a reset call (oops) * Use device theme for split placeholder theme instead of hardcoding to white Fixes: 206155455 Change-Id: I3768fd574cb21eec9562d89c1a93eaa3f53d5ff1 --- .../com/android/quickstep/util/SplitSelectStateController.java | 2 -- quickstep/src/com/android/quickstep/views/FloatingTaskView.java | 1 - quickstep/src/com/android/quickstep/views/RecentsView.java | 1 + res/layout/floating_split_select_view.xml | 2 +- 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/quickstep/src/com/android/quickstep/util/SplitSelectStateController.java b/quickstep/src/com/android/quickstep/util/SplitSelectStateController.java index b32c4e5550..41aaa1a80c 100644 --- a/quickstep/src/com/android/quickstep/util/SplitSelectStateController.java +++ b/quickstep/src/com/android/quickstep/util/SplitSelectStateController.java @@ -24,14 +24,12 @@ import static com.android.launcher3.util.SplitConfigurationOptions.STAGE_POSITIO import android.app.ActivityOptions; import android.app.ActivityThread; import android.graphics.Rect; -import android.os.Bundle; import android.os.Handler; import android.os.IBinder; import android.view.RemoteAnimationAdapter; import android.view.SurfaceControl; import android.window.TransitionInfo; -import com.android.launcher3.Utilities; import com.android.launcher3.util.SplitConfigurationOptions; import com.android.launcher3.util.SplitConfigurationOptions.StagePosition; import com.android.quickstep.SystemUiProxy; diff --git a/quickstep/src/com/android/quickstep/views/FloatingTaskView.java b/quickstep/src/com/android/quickstep/views/FloatingTaskView.java index e2ffa18315..c26837c6b7 100644 --- a/quickstep/src/com/android/quickstep/views/FloatingTaskView.java +++ b/quickstep/src/com/android/quickstep/views/FloatingTaskView.java @@ -71,7 +71,6 @@ public class FloatingTaskView extends FrameLayout { mImageView.setLayerType(LAYER_TYPE_HARDWARE, null); mSplitPlaceholderView = findViewById(R.id.split_placeholder); mSplitPlaceholderView.setAlpha(0); - mSplitPlaceholderView.setBackgroundColor(getResources().getColor(android.R.color.white)); } public static FloatingTaskView getFloatingTaskView(StatefulActivity launcher, diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java index aa5fde88c3..01f6af0201 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/src/com/android/quickstep/views/RecentsView.java @@ -1897,6 +1897,7 @@ public abstract class RecentsView \ No newline at end of file