Skip to content

Commit 28e0b09

Browse files
author
Jeff Brown
committed
Fix typo.
Bug: 7183618 Change-Id: I0c761fc7f55b3f182007cb4d50cbfdce309f844a
1 parent 5e21bf9 commit 28e0b09

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

services/java/com/android/server/wm/WindowStateAnimator.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,11 +1055,12 @@ void updateSurfaceWindowCrop(final boolean recoveringMemory) {
10551055
// just keep the crop rect the same as the source surface.
10561056
w.mSystemDecorRect.set(0, 0, w.mRequestedWidth, w.mRequestedHeight);
10571057
} else if (!w.isDefaultDisplay()) {
1058-
// On a different display is easy, just use the entire display.
1058+
// On a different display there is no system decor. Crop the window
1059+
// by the screen boundaries.
10591060
w.mSystemDecorRect.set(0, 0, w.mCompatFrame.width(), w.mCompatFrame.height());
1060-
w.mSystemDecorRect.intersect(-w.mFrame.left, -w.mFrame.top,
1061-
displayInfo.logicalWidth - w.mFrame.left,
1062-
displayInfo.logicalHeight - w.mFrame.top);
1061+
w.mSystemDecorRect.intersect(-w.mCompatFrame.left, -w.mCompatFrame.top,
1062+
displayInfo.logicalWidth - w.mCompatFrame.left,
1063+
displayInfo.logicalHeight - w.mCompatFrame.top);
10631064
} else if (w.mLayer >= mService.mSystemDecorLayer) {
10641065
// Above the decor layer is easy, just use the entire window.
10651066
// Unless we have a universe background... in which case all the

0 commit comments

Comments
 (0)