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

Commit c705acbd authored by Pablo Gamito's avatar Pablo Gamito
Browse files

Empty region should cover at most any provided region

Test: atest com.android.wm.shell.flicker.pip.EnterPipOnUserLeaveHintTest
Bug: 293577434
Change-Id: I56b822712288c7903d0a6358573c78e1851afcef
parent 4b81e387
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -265,6 +265,7 @@ fun LayerTraceEntrySubject.splitAppLayerBoundsSnapToDivider(
        val dividerRegion =
            layer(SPLIT_SCREEN_DIVIDER_COMPONENT)?.visibleRegion?.region
                ?: error("$SPLIT_SCREEN_DIVIDER_COMPONENT component not found")
        visibleRegion(component).isNotEmpty()
        visibleRegion(component)
            .coversAtMost(
                if (displayBounds.width > displayBounds.height) {