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

Commit 43d59483 authored by Jerry Chang's avatar Jerry Chang
Browse files

Fix wrong touch region of split sreen

To compatable with Ia36d7529 which introduced a single-top root task for
multi-window split, updates space-to fill bounds of letter box to the
task level.

Fix: 227563144
Test: Test: atest WmTests:SizeCompatTests
Test: verify touch region with dumpsys input in multi-window split
Change-Id: I64375f66ce06e47c6c5421d2cd30c1d63f5a47f8
parent 95311598
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -175,7 +175,7 @@ final class LetterboxUiController {
            final Rect spaceToFill = transformedBounds != null
                    ? transformedBounds
                    : mActivityRecord.inMultiWindowMode()
                            ? mActivityRecord.getRootTask().getBounds()
                            ? mActivityRecord.getTask().getBounds()
                            : mActivityRecord.getRootTask().getParent().getBounds();
            mLetterbox.layout(spaceToFill, w.getFrame(), mTmpPoint);
        } else if (mLetterbox != null) {