diff --git a/quickstep/src/com/android/quickstep/util/TaskViewSimulator.java b/quickstep/src/com/android/quickstep/util/TaskViewSimulator.java index c97ca32aa2..cceb872f78 100644 --- a/quickstep/src/com/android/quickstep/util/TaskViewSimulator.java +++ b/quickstep/src/com/android/quickstep/util/TaskViewSimulator.java @@ -56,6 +56,7 @@ public class TaskViewSimulator implements TransformParams.BuilderProxy { private final Context mContext; private final BaseActivityInterface mSizeStrategy; + private final boolean mIsForLiveTile; @NonNull private RecentsOrientedState mOrientationState; @@ -93,8 +94,14 @@ public class TaskViewSimulator implements TransformParams.BuilderProxy { private int mOrientationStateId; public TaskViewSimulator(Context context, BaseActivityInterface sizeStrategy) { + this(context, sizeStrategy, false); + } + + public TaskViewSimulator(Context context, BaseActivityInterface sizeStrategy, + boolean isForLiveTile) { mContext = context; mSizeStrategy = sizeStrategy; + mIsForLiveTile = isForLiveTile; // TODO(b/187074722): Don't create this per-TaskViewSimulator mOrientationState = TraceHelper.allowIpcs("", @@ -302,7 +309,8 @@ public class TaskViewSimulator implements TransformParams.BuilderProxy { .withWindowCrop(mTmpCropRect) .withCornerRadius(getCurrentCornerRadius()); - if (ENABLE_QUICKSTEP_LIVE_TILE.get() && params.getRecentsSurface() != null) { + if (ENABLE_QUICKSTEP_LIVE_TILE.get() && mIsForLiveTile + && params.getRecentsSurface() != null) { // When relativeLayer = 0, it reverts the surfaces back to the original order. builder.withRelativeLayerTo(params.getRecentsSurface(), mDrawsBelowRecents ? Integer.MIN_VALUE : 0); diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java index 4e1bcc9bee..ce79125be1 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/src/com/android/quickstep/views/RecentsView.java @@ -629,7 +629,8 @@ public abstract class RecentsView finishRecentsAnimation(true /* toRecents */, false /* shouldPip */, + null)); + } } /**