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

Commit 1822ca3f authored by Omar Elmekkawy's avatar Omar Elmekkawy
Browse files

Apply end bounds to all leashes on tiling animation end.

When only applying end bounds to tiled leashes, some apps like WhatsApp
end up looking weird with empty buffer sections.

This CL applies endAbsBounds to all leashes sent in the change list to the
startAnimation function.

Flag: com.android.window.flags.enable_tile_resizing
Test: on device testing
Bug: 438406328
Change-Id: I9ffbeaa005c33ac6a12e27d67fd4d8db5a3a6bf9
parent d866dcbf
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -421,12 +421,7 @@ class DesktopTilingWindowDecoration(
        val rightTiledTask = rightTaskResizingHelper ?: return false
        for (change in info.getChanges()) {
            val sc: SurfaceControl = change.getLeash()
            val endBounds =
                if (change.taskInfo?.taskId == leftTiledTask.taskInfo.taskId) {
                    leftTiledTask.bounds
                } else {
                    rightTiledTask.bounds
                }
            val endBounds = change.endAbsBounds
            startTransaction.setWindowCrop(sc, endBounds.width(), endBounds.height())
            finishTransaction.setWindowCrop(sc, endBounds.width(), endBounds.height())
        }