Fix screen size compatibility mode.
Change-Id: I2c06bbb586b4e54fc7ec52ec914cf95a18006217
This commit is contained in:
@ -5753,13 +5753,13 @@ public class WindowManagerService extends IWindowManager.Stub
|
|||||||
mScreenLayout = Configuration.SCREENLAYOUT_SIZE_LARGE;
|
mScreenLayout = Configuration.SCREENLAYOUT_SIZE_LARGE;
|
||||||
} else {
|
} else {
|
||||||
mScreenLayout = Configuration.SCREENLAYOUT_SIZE_NORMAL;
|
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
|
// If this screen is wider than normal HVGA, or taller
|
||||||
// compatibility mode.
|
// than FWVGA, then for old apps we want to run in size
|
||||||
if (shortSize > 321 || longSize > 570) {
|
// compatibility mode.
|
||||||
mScreenLayout |= Configuration.SCREENLAYOUT_COMPAT_NEEDED;
|
if (shortSize > 321 || longSize > 570) {
|
||||||
}
|
mScreenLayout |= Configuration.SCREENLAYOUT_COMPAT_NEEDED;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Is this a long screen?
|
// Is this a long screen?
|
||||||
|
Reference in New Issue
Block a user