Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b0b48ea6 authored by Omar Elmekkawy's avatar Omar Elmekkawy
Browse files

[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
parent aac44eb3
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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(