From 5f5bd84d99e5b6168b6e8c7ac4727c5a71395cda Mon Sep 17 00:00:00 2001 From: Hongwei Wang Date: Thu, 14 Apr 2022 10:45:38 -0700 Subject: [PATCH] Fix flicker when entering PiP from split-screen / overview This is a follow-up of ag/16418447 where we hide the Tasks in split-screen mode on swipe-home-to-pip and here we use the same mechanism when we are entering PiP from the overview and the pip-able task is in split-screen mode. Video: http://recall/-/aaaaaabFQoRHlzixHdtY/bNtg3ZOhuTBKm9nU9CPeNQ Bug: 228289777 Test: follow the reproduce steps in bug, see video Change-Id: Icab11d52cedaf94af0ee72023cebca8ec51d8851 --- .../com/android/quickstep/views/RecentsView.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java index c6d26a1f83..952038e2cd 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/src/com/android/quickstep/views/RecentsView.java @@ -106,6 +106,7 @@ import android.view.animation.Interpolator; import android.widget.ListView; import android.widget.OverScroller; import android.widget.Toast; +import android.window.PictureInPictureSurfaceTransaction; import androidx.annotation.NonNull; import androidx.annotation.Nullable; @@ -161,6 +162,7 @@ import com.android.quickstep.TaskThumbnailCache; import com.android.quickstep.TaskViewUtils; import com.android.quickstep.ViewUtils; import com.android.quickstep.util.GroupTask; +import com.android.quickstep.util.LauncherSplitScreenListener; import com.android.quickstep.util.LayoutUtils; import com.android.quickstep.util.RecentsOrientedState; import com.android.quickstep.util.SplitScreenBounds; @@ -4488,6 +4490,18 @@ public abstract class RecentsView { if (onFinishComplete != null) {