From 55cb5fca91f44063f7f53db5b649defa959af77d Mon Sep 17 00:00:00 2001 From: Ats Jenk Date: Tue, 28 Feb 2023 10:09:43 -0800 Subject: [PATCH] Hide desktop tile when choosing apps for split Bug: 269660657 Test: open overview, click on split screen action, observe desktop tile is hidden Test: on home screen, long press on app icon and choose split screen, observe overview opens with desktop tile hidden Change-Id: I60c06a8e2ef8fc13e741f8845254d22e9e430bb6 --- .../quickstep/views/DesktopTaskView.java | 1 + .../android/quickstep/views/RecentsView.java | 36 ++++++++++++++++--- 2 files changed, 33 insertions(+), 4 deletions(-) diff --git a/quickstep/src/com/android/quickstep/views/DesktopTaskView.java b/quickstep/src/com/android/quickstep/views/DesktopTaskView.java index 89177b6c3f..14898b1007 100644 --- a/quickstep/src/com/android/quickstep/views/DesktopTaskView.java +++ b/quickstep/src/com/android/quickstep/views/DesktopTaskView.java @@ -381,6 +381,7 @@ public class DesktopTaskView extends TaskView { } setOverlayEnabled(false); onTaskListVisibilityChanged(false); + setVisibility(VISIBLE); } @Override diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java index 0284d2937d..19dc0103ee 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/src/com/android/quickstep/views/RecentsView.java @@ -706,6 +706,12 @@ public abstract class RecentsView tasks = desktopTask != null ? desktopTask.tasks : new ArrayList<>(); - ((DesktopTaskView) taskView).bind(tasks, mOrientationState); + mDesktopTaskView.bind(tasks, mOrientationState); } } @@ -2774,6 +2783,10 @@ public abstract class RecentsView