diff options
author | Michael Jurka <mikejurka@google.com> | 2011-05-13 14:27:39 -0700 |
---|---|---|
committer | Michael Jurka <mikejurka@google.com> | 2011-05-13 14:40:21 -0700 |
commit | 8ff6cb60e13c368b28780fc62e0c9f79b422f62a (patch) | |
tree | b0903b52cfd6a5b7e2da60cfea3b3f5739c61d60 /src | |
parent | 54a4ac26898ea318f434443458680cb3014bf6fa (diff) | |
download | android_packages_apps_Trebuchet-8ff6cb60e13c368b28780fc62e0c9f79b422f62a.tar.gz android_packages_apps_Trebuchet-8ff6cb60e13c368b28780fc62e0c9f79b422f62a.tar.bz2 android_packages_apps_Trebuchet-8ff6cb60e13c368b28780fc62e0c9f79b422f62a.zip |
DO NOT MERGE
Using tablet layout on large devices
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/launcher2/LauncherApplication.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/launcher2/LauncherApplication.java b/src/com/android/launcher2/LauncherApplication.java index ed007dd67..8b32f47dd 100644 --- a/src/com/android/launcher2/LauncherApplication.java +++ b/src/com/android/launcher2/LauncherApplication.java @@ -39,7 +39,9 @@ public class LauncherApplication extends Application { super.onCreate(); // set sIsScreenXLarge and sScreenDensity *before* creating icon cache - sIsScreenXLarge = (getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) == Configuration.SCREENLAYOUT_SIZE_XLARGE; + final int screenSize = getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK; + sIsScreenXLarge = screenSize == Configuration.SCREENLAYOUT_SIZE_LARGE || + screenSize == Configuration.SCREENLAYOUT_SIZE_XLARGE; sScreenDensity = getResources().getDisplayMetrics().density; mIconCache = new IconCache(this); |