diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/unfold/UnfoldAnimationController.java b/libs/WindowManager/Shell/src/com/android/wm/shell/unfold/UnfoldAnimationController.java index 4aed7c449750..e6d35e83116b 100644 --- a/libs/WindowManager/Shell/src/com/android/wm/shell/unfold/UnfoldAnimationController.java +++ b/libs/WindowManager/Shell/src/com/android/wm/shell/unfold/UnfoldAnimationController.java @@ -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; @@ -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; }