Skip to content

Commit c12cdda

Browse files
Dianne HackbornAndroid (Google) Code Review
authored andcommitted
Merge "DO NOT MERGE: Fix screen size compatibility mode." into gingerbread
2 parents 1358b6a + 726318b commit c12cdda

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5029,13 +5029,13 @@ boolean computeNewConfigurationLocked(Configuration config) {
50295029
mScreenLayout = Configuration.SCREENLAYOUT_SIZE_LARGE;
50305030
} else {
50315031
mScreenLayout = Configuration.SCREENLAYOUT_SIZE_NORMAL;
5032-
5033-
// If this screen is wider than normal HVGA, or taller
5034-
// than FWVGA, then for old apps we want to run in size
5035-
// compatibility mode.
5036-
if (shortSize > 321 || longSize > 570) {
5037-
mScreenLayout |= Configuration.SCREENLAYOUT_COMPAT_NEEDED;
5038-
}
5032+
}
5033+
5034+
// If this screen is wider than normal HVGA, or taller
5035+
// than FWVGA, then for old apps we want to run in size
5036+
// compatibility mode.
5037+
if (shortSize > 321 || longSize > 570) {
5038+
mScreenLayout |= Configuration.SCREENLAYOUT_COMPAT_NEEDED;
50395039
}
50405040

50415041
// Is this a long screen?

0 commit comments

Comments
 (0)