Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7aded94e authored by Hongwei Wang's avatar Hongwei Wang
Browse files

Cleanup ENABLE_PIP_APP_ICON_OVERLAY

Bug: 296125301
Test: manual, enter PiP from Google Maps
Change-Id: I571fd5450ccf00232c450d82d32783beb99cfecf
parent 184fa593
Loading
Loading
Loading
Loading
+3 −9
Original line number Diff line number Diff line
@@ -26,7 +26,6 @@ import android.content.pm.ActivityInfo;
import android.graphics.Matrix;
import android.graphics.Rect;
import android.graphics.RectF;
import android.os.SystemProperties;
import android.util.Log;
import android.view.Surface;
import android.view.SurfaceControl;
@@ -153,14 +152,9 @@ public class SwipePipToHomeAnimator extends RectFSpringAnim {
            // Create a new overlay layer. We do not call detach on this instance, it's propagated
            // to other classes like PipTaskOrganizer / RecentsAnimationController to complete
            // the cleanup.
            if (SystemProperties.getBoolean(
                    "persist.wm.debug.enable_pip_app_icon_overlay", true)) {
            mPipContentOverlay = new PipContentOverlay.PipAppIconOverlay(view.getContext(),
                    mAppBounds, new IconProvider(context).getIcon(mActivityInfo),
                    appIconSizePx);
            }  else {
                mPipContentOverlay = new PipContentOverlay.PipColorOverlay(view.getContext());
            }
            final SurfaceControl.Transaction tx = new SurfaceControl.Transaction();
            mPipContentOverlay.attach(tx, mLeash);
        } else {