Skip to content

Commit 09bd49a

Browse files
author
Dianne Hackborn
committed
Fix issue #5328235: Wrong values for smallestScreenWidthDp
Maybe. Change-Id: I88dfde1626376b3003bdd7a8068c55545255851e
1 parent fd4d90b commit 09bd49a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5723,9 +5723,9 @@ private int computeSmallestWidth(boolean rotated, int dw, int dh, float density)
57235723
unrotDh = dh;
57245724
}
57255725
int sw = reduceConfigWidthSize(unrotDw, Surface.ROTATION_0, density, unrotDw, unrotDh);
5726-
sw = reduceConfigWidthSize(sw, Surface.ROTATION_90, density, unrotDw, unrotDh);
5726+
sw = reduceConfigWidthSize(sw, Surface.ROTATION_90, density, unrotDh, unrotDw);
57275727
sw = reduceConfigWidthSize(sw, Surface.ROTATION_180, density, unrotDw, unrotDh);
5728-
sw = reduceConfigWidthSize(sw, Surface.ROTATION_270, density, unrotDw, unrotDh);
5728+
sw = reduceConfigWidthSize(sw, Surface.ROTATION_270, density, unrotDh, unrotDw);
57295729
return sw;
57305730
}
57315731

0 commit comments

Comments
 (0)