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

Commit e97a12e3 authored by Dianne Hackborn's avatar Dianne Hackborn
Browse files

Fix screen size compatibility mode.

Change-Id: I2c06bbb586b4e54fc7ec52ec914cf95a18006217
parent 51990f9b
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -5753,6 +5753,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
@@ -5760,7 +5761,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)) {