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

Commit 71bb59f9 authored by Dianne Hackborn's avatar Dianne Hackborn Committed by Android Git Automerger
Browse files

am c12cdda9: Merge "DO NOT MERGE: Fix screen size compatibility mode." into gingerbread

* commit 'c12cdda9':
  DO NOT MERGE: Fix screen size compatibility mode.
parents e802b592 c12cdda9
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -5030,6 +5030,7 @@ 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
@@ -5037,7 +5038,6 @@ public class WindowManagerService extends IWindowManager.Stub
                if (shortSize > 321 || longSize > 570) {
                    mScreenLayout |= Configuration.SCREENLAYOUT_COMPAT_NEEDED;
                }
                }

                // Is this a long screen?
                if (((longSize*3)/5) >= (shortSize-1)) {