Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0aa403c3 authored by Dianne Hackborn's avatar Dianne Hackborn Committed by Android Git Automerger
Browse files

am 09a31662: Merge "Fix issue #3505861: Need to decide large/xlarge screen...

am 09a31662: Merge "Fix issue #3505861: Need to decide large/xlarge screen size limits" into honeycomb-mr1

* commit '09a31662':
  Fix issue #3505861: Need to decide large/xlarge screen size limits
parents 6f761209 09a31662
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
@@ -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 {