am 14cee9f6: New xlarge screen size.

This commit is contained in:
Dianne Hackborn
2010-04-28 16:58:05 -07:00
committed by Android Git Automerger
18 changed files with 246 additions and 26 deletions

View File

@@ -4898,8 +4898,12 @@ public class WindowManagerService extends IWindowManager.Stub
mScreenLayout = Configuration.SCREENLAYOUT_SIZE_SMALL
| Configuration.SCREENLAYOUT_LONG_NO;
} else {
// Is this a large screen?
if (longSize > 640 && shortSize >= 480) {
// What size is this screen screen?
if (longSize >= 800 && shortSize >= 600) {
// SVGA 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 >= 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;