Skip to content

Commit

Permalink
Revert "Work around the flicker on enter PiP for foldables"
Browse files Browse the repository at this point in the history
Reason for revert: Not present in QPR3.

This reverts commit fdaa880.

Change-Id: I659608446a8607047939a572adbdcaa8610a761e
  • Loading branch information
mikeNG authored and ArmSM committed Jun 23, 2024
1 parent 8422022 commit 24e666d
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@

package com.android.wm.shell.unfold;

import static android.app.WindowConfiguration.WINDOWING_MODE_PINNED;

import android.annotation.NonNull;
import android.app.ActivityManager.RunningTaskInfo;
import android.app.TaskInfo;
Expand Down Expand Up @@ -230,8 +228,7 @@ public void onStateChangeFinished() {
}

private void maybeResetTask(UnfoldTaskAnimator animator, TaskInfo taskInfo) {
// TODO(b/311084698): the windowing mode check is added here as a work around.
if (!mIsInStageChange || taskInfo.getWindowingMode() == WINDOWING_MODE_PINNED) {
if (!mIsInStageChange) {
// No need to resetTask if there is no ongoing state change.
return;
}
Expand Down

0 comments on commit 24e666d

Please sign in to comment.