From e5e6a428380c39203077091151ccaec431c125c7 Mon Sep 17 00:00:00 2001 From: Hongwei Wang Date: Thu, 9 Mar 2023 19:25:04 -0800 Subject: [PATCH] VisD update for the PipAppIconOverlay Supply the app icon to PipContentOverlay using IconProvider Video: http://recall/-/aaaaaabFQoRHlzixHdtY/blaCMAiD9NQCIFj1V4i8qQ video: http://recall/-/aaaaaabFQoRHlzixHdtY/gqHVRIePASh13Kk7wMeewa Bug: 271912318 Test: manual in both light and dark thems, see the videos Change-Id: I8b57751b0e82446405680d76120dfcf75ef47c59 --- .../src/com/android/quickstep/util/SwipePipToHomeAnimator.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/quickstep/src/com/android/quickstep/util/SwipePipToHomeAnimator.java b/quickstep/src/com/android/quickstep/util/SwipePipToHomeAnimator.java index f94d80fa0c..dcbccc539b 100644 --- a/quickstep/src/com/android/quickstep/util/SwipePipToHomeAnimator.java +++ b/quickstep/src/com/android/quickstep/util/SwipePipToHomeAnimator.java @@ -37,6 +37,7 @@ import androidx.annotation.NonNull; import androidx.annotation.Nullable; import com.android.launcher3.anim.AnimationSuccessListener; +import com.android.launcher3.icons.IconProvider; import com.android.quickstep.TaskAnimationManager; import com.android.systemui.shared.pip.PipSurfaceTransactionHelper; import com.android.systemui.shared.system.InteractionJankMonitorWrapper; @@ -152,7 +153,7 @@ public class SwipePipToHomeAnimator extends RectFSpringAnim { if (SystemProperties.getBoolean( "persist.wm.debug.enable_pip_app_icon_overlay", true)) { mPipContentOverlay = new PipContentOverlay.PipAppIconOverlay(view.getContext(), - mAppBounds, mActivityInfo); + mAppBounds, () -> new IconProvider(context).getIcon(mActivityInfo)); } else { mPipContentOverlay = new PipContentOverlay.PipColorOverlay(view.getContext()); }