diff options
author | Dianne Hackborn <hackbod@google.com> | 2011-01-30 11:02:29 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2011-01-30 11:02:29 -0800 |
commit | bdaee964f7d00806e714a7e453fff8d6a408c692 (patch) | |
tree | 30f2c51b067f89b262a86d435fc47fc7af2bde28 /services | |
parent | f50029220664be6cc5b2b4c18377b0efa9fe6ca5 (diff) | |
parent | e97a12e340dfdc246b531dfb49596628bd24e81b (diff) | |
download | frameworks_base-bdaee964f7d00806e714a7e453fff8d6a408c692.zip frameworks_base-bdaee964f7d00806e714a7e453fff8d6a408c692.tar.gz frameworks_base-bdaee964f7d00806e714a7e453fff8d6a408c692.tar.bz2 |
am e97a12e3: Fix screen size compatibility mode.
* commit 'e97a12e340dfdc246b531dfb49596628bd24e81b':
Fix screen size compatibility mode.
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 faaa28d..f1ef77b 100644 --- a/services/java/com/android/server/WindowManagerService.java +++ b/services/java/com/android/server/WindowManagerService.java @@ -5753,13 +5753,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? |