diff options
Diffstat (limited to 'src/com/android/launcher2/LauncherApplication.java')
-rw-r--r-- | src/com/android/launcher2/LauncherApplication.java | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/com/android/launcher2/LauncherApplication.java b/src/com/android/launcher2/LauncherApplication.java index 8b32f47dd..68b164436 100644 --- a/src/com/android/launcher2/LauncherApplication.java +++ b/src/com/android/launcher2/LauncherApplication.java @@ -23,24 +23,20 @@ import android.content.IntentFilter; import android.content.res.Configuration; import android.database.ContentObserver; import android.os.Handler; -import dalvik.system.VMRuntime; public class LauncherApplication extends Application { public LauncherModel mModel; public IconCache mIconCache; - private static boolean sIsScreenXLarge; + private static boolean sIsScreenLarge; private static float sScreenDensity; - private static final boolean ENABLE_ROTATION = false; @Override public void onCreate() { - VMRuntime.getRuntime().setMinimumHeapSize(4 * 1024 * 1024); - super.onCreate(); // set sIsScreenXLarge and sScreenDensity *before* creating icon cache final int screenSize = getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK; - sIsScreenXLarge = screenSize == Configuration.SCREENLAYOUT_SIZE_LARGE || + sIsScreenLarge = screenSize == Configuration.SCREENLAYOUT_SIZE_LARGE || screenSize == Configuration.SCREENLAYOUT_SIZE_XLARGE; sScreenDensity = getResources().getDisplayMetrics().density; @@ -101,12 +97,8 @@ public class LauncherApplication extends Application { return mModel; } - public static boolean isInPlaceRotationEnabled() { - return sIsScreenXLarge && ENABLE_ROTATION; - } - - public static boolean isScreenXLarge() { - return sIsScreenXLarge; + public static boolean isScreenLarge() { + return sIsScreenLarge; } public static float getScreenDensity() { |