New xlarge screen size.
Not complete, only for experimentation at this point. This includes a reworking of how screen size configurations are matched, so that if you are on a larger screen we can select configurations for smaller screens if there aren't any exactly matching the current screen. The screen size at which we switch to xlarge has been arbitrarily chosen; the compatibility behavior has not yet been defined. Change-Id: I1a33b3818eeb51a68fb72397568c39ab040a07f5
This commit is contained in:
@@ -4900,8 +4900,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;
|
||||
|
||||
Reference in New Issue
Block a user