diff options
author | Dianne Hackborn <hackbod@google.com> | 2011-03-08 10:33:55 -0800 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2011-03-08 10:33:55 -0800 |
commit | cc1d9f7942f7e70c240f0cc745840262345f506f (patch) | |
tree | 2ab2592ba14c311924328ac35b4226467cb7c2d4 /services | |
parent | 0aaa11ed5be45170fb2535a6ce021c92b18d8878 (diff) | |
download | frameworks_base-cc1d9f7942f7e70c240f0cc745840262345f506f.zip frameworks_base-cc1d9f7942f7e70c240f0cc745840262345f506f.tar.gz frameworks_base-cc1d9f7942f7e70c240f0cc745840262345f506f.tar.bz2 |
Fix issue #3505861: Need to decide large/xlarge screen size limits
Decided.
Change-Id: I8292d65e3d47755778fdf85207c49f160c756452
Diffstat (limited to 'services')
-rw-r--r-- | services/java/com/android/server/wm/WindowManagerService.java | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/services/java/com/android/server/wm/WindowManagerService.java b/services/java/com/android/server/wm/WindowManagerService.java index eed41a0..1e9fd02 100644 --- a/services/java/com/android/server/wm/WindowManagerService.java +++ b/services/java/com/android/server/wm/WindowManagerService.java @@ -5460,8 +5460,9 @@ public class WindowManagerService extends IWindowManager.Stub shortSize = (int)(shortSize/dm.density); // These semi-magic numbers define our compatibility modes for - // applications with different screens. Don't change unless you - // make sure to test lots and lots of apps! + // applications with different screens. These are guarantees to + // app developers about the space they can expect for a particular + // configuration. DO NOT CHANGE! if (longSize < 470) { // This is shorter than an HVGA normal density screen (which // is 480 pixels on its long side). @@ -5469,12 +5470,12 @@ public class WindowManagerService extends IWindowManager.Stub | Configuration.SCREENLAYOUT_LONG_NO; } else { // What size is this screen screen? - if (longSize >= 800 && shortSize >= 600) { - // SVGA or larger screens at medium density are the point + if (longSize >= 960 && shortSize >= 720) { + // 1.5xVGA or larger screens at medium density are the point // at which we consider it to be an extra large screen. mScreenLayout = Configuration.SCREENLAYOUT_SIZE_XLARGE; - } else if (longSize >= 530 && shortSize >= 400) { - // SVGA or larger screens at high density are the point + } else if (longSize >= 640 && shortSize >= 480) { + // VGA or larger screens at medium density are the point // at which we consider it to be a large screen. mScreenLayout = Configuration.SCREENLAYOUT_SIZE_LARGE; } else { |