diff options
author | Dianne Hackborn <hackbod@google.com> | 2011-01-29 13:22:02 -0800 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2011-01-29 18:02:18 -0800 |
commit | 726318b56a6c4736caa97c18b1e6b9af800130c9 (patch) | |
tree | 99eb47d1522c2fe5991e05fcb18a9269a5324324 /services | |
parent | 6b739dc7292452227cdd8abd90658f4db8f0ce70 (diff) | |
download | frameworks_base-726318b56a6c4736caa97c18b1e6b9af800130c9.zip frameworks_base-726318b56a6c4736caa97c18b1e6b9af800130c9.tar.gz frameworks_base-726318b56a6c4736caa97c18b1e6b9af800130c9.tar.bz2 |
DO NOT MERGE: Fix screen size compatibility mode.
Cherry-picked from HC.
Change-Id: Icce2a64f187a56deefcddc3d9b22fa94effce431
Diffstat (limited to 'services')
-rw-r--r-- | services/java/com/android/server/WindowManagerService.java | 14 |
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 f28bae0..efd0bb4 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? |