From b0b48ea6a6ac0842009fc9377305f650ab8a8137 Mon Sep 17 00:00:00 2001 From: Omar Elmekkawy Date: Tue, 29 Oct 2024 12:30:05 +0000 Subject: [11/n] Fix a bug where tiling isn't broken on 5 app open minimize Tiling assumed there are two ways to minimize, the back button and the minimize button, but opening apps more than the allowed count(4) minimizes tasks as well and this should be checked in onTransitionReady. Flag: com.android.window.flags.enable_tile_resizing Test: on device testing Bug: 376221715 Change-Id: I9f5aeb5ee367cd6676264c39781ac4e6bb3008df --- .../wm/shell/windowdecor/tiling/DesktopTilingWindowDecoration.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/tiling/DesktopTilingWindowDecoration.kt b/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/tiling/DesktopTilingWindowDecoration.kt index 6ea1d14cc734..8f089dcf62d8 100644 --- a/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/tiling/DesktopTilingWindowDecoration.kt +++ b/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/tiling/DesktopTilingWindowDecoration.kt @@ -27,6 +27,7 @@ import android.util.Slog import android.view.SurfaceControl import android.view.SurfaceControl.Transaction import android.view.WindowManager.TRANSIT_CHANGE +import android.view.WindowManager.TRANSIT_OPEN import android.view.WindowManager.TRANSIT_TO_BACK import android.view.WindowManager.TRANSIT_TO_FRONT import android.window.TransitionInfo @@ -342,7 +343,9 @@ class DesktopTilingWindowDecoration( private fun isMinimized(changeMode: Int, infoType: Int): Boolean { return (changeMode == TRANSIT_TO_BACK && - (infoType == TRANSIT_MINIMIZE || infoType == TRANSIT_TO_BACK)) + (infoType == TRANSIT_MINIMIZE || + infoType == TRANSIT_TO_BACK || + infoType == TRANSIT_OPEN)) } class AppResizingHelper( -- cgit v1.2.3-59-g8ed1b