From 726318b56a6c4736caa97c18b1e6b9af800130c9 Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Sat, 29 Jan 2011 13:22:02 -0800 Subject: [PATCH] DO NOT MERGE: Fix screen size compatibility mode. Cherry-picked from HC. Change-Id: Icce2a64f187a56deefcddc3d9b22fa94effce431 --- .../com/android/server/WindowManagerService.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/services/java/com/android/server/WindowManagerService.java b/services/java/com/android/server/WindowManagerService.java index f28bae073a4d2..efd0bb49dc1b9 100644 --- a/services/java/com/android/server/WindowManagerService.java +++ b/services/java/com/android/server/WindowManagerService.java @@ -5029,13 +5029,13 @@ 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 - // compatibility mode. - if (shortSize > 321 || longSize > 570) { - mScreenLayout |= Configuration.SCREENLAYOUT_COMPAT_NEEDED; - } + } + + // If this screen is wider than normal HVGA, or taller + // than FWVGA, then for old apps we want to run in size + // compatibility mode. + if (shortSize > 321 || longSize > 570) { + mScreenLayout |= Configuration.SCREENLAYOUT_COMPAT_NEEDED; } // Is this a long screen?