Loading libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/DesktopModeWindowDecorViewModel.java +4 −2 Original line number Diff line number Diff line Loading @@ -278,9 +278,11 @@ public class DesktopModeWindowDecorViewModel implements WindowDecorViewModel { public void onTaskStageChanged(int taskId, @StageType int stage, boolean visible) { if (visible && stage != STAGE_TYPE_UNDEFINED) { DesktopModeWindowDecoration decor = mWindowDecorByTaskId.get(taskId); if (decor != null && DesktopModeStatus.canEnterDesktopMode(mContext)) { mDesktopTasksController.moveToSplit(decor.mTaskInfo); if (decor == null || !DesktopModeStatus.canEnterDesktopMode(mContext) || decor.mTaskInfo.getWindowingMode() != WINDOWING_MODE_FREEFORM) { return; } mDesktopTasksController.moveToSplit(decor.mTaskInfo); } } }); Loading Loading
libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/DesktopModeWindowDecorViewModel.java +4 −2 Original line number Diff line number Diff line Loading @@ -278,9 +278,11 @@ public class DesktopModeWindowDecorViewModel implements WindowDecorViewModel { public void onTaskStageChanged(int taskId, @StageType int stage, boolean visible) { if (visible && stage != STAGE_TYPE_UNDEFINED) { DesktopModeWindowDecoration decor = mWindowDecorByTaskId.get(taskId); if (decor != null && DesktopModeStatus.canEnterDesktopMode(mContext)) { mDesktopTasksController.moveToSplit(decor.mTaskInfo); if (decor == null || !DesktopModeStatus.canEnterDesktopMode(mContext) || decor.mTaskInfo.getWindowingMode() != WINDOWING_MODE_FREEFORM) { return; } mDesktopTasksController.moveToSplit(decor.mTaskInfo); } } }); Loading