summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2011-01-29 13:22:02 -0800
committerDianne Hackborn <hackbod@google.com>2011-01-29 18:02:18 -0800
commit726318b56a6c4736caa97c18b1e6b9af800130c9 (patch)
tree99eb47d1522c2fe5991e05fcb18a9269a5324324
parent6b739dc7292452227cdd8abd90658f4db8f0ce70 (diff)
downloadbase-726318b56a6c4736caa97c18b1e6b9af800130c9.tar.gz
DO NOT MERGE: Fix screen size compatibility mode.
Cherry-picked from HC. Change-Id: Icce2a64f187a56deefcddc3d9b22fa94effce431
-rw-r--r--services/java/com/android/server/WindowManagerService.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/services/java/com/android/server/WindowManagerService.java b/services/java/com/android/server/WindowManagerService.java
index f28bae073a4d..efd0bb49dc1b 100644
--- a/services/java/com/android/server/WindowManagerService.java
+++ b/services/java/com/android/server/WindowManagerService.java
@@ -5029,13 +5029,13 @@ public class WindowManagerService extends IWindowManager.Stub
mScreenLayout = Configuration.SCREENLAYOUT_SIZE_LARGE;
} else {
mScreenLayout = Configuration.SCREENLAYOUT_SIZE_NORMAL;
-
- // If this screen is wider than normal HVGA, or taller
- // than FWVGA, then for old apps we want to run in size
- // compatibility mode.
- if (shortSize > 321 || longSize > 570) {
- mScreenLayout |= Configuration.SCREENLAYOUT_COMPAT_NEEDED;
- }
+ }
+
+ // If this screen is wider than normal HVGA, or taller
+ // than FWVGA, then for old apps we want to run in size
+ // compatibility mode.
+ if (shortSize > 321 || longSize > 570) {
+ mScreenLayout |= Configuration.SCREENLAYOUT_COMPAT_NEEDED;
}
// Is this a long screen?