diff options
author | Michael Jurka <mikejurka@google.com> | 2010-11-01 11:52:08 -0700 |
---|---|---|
committer | Michael Jurka <mikejurka@google.com> | 2010-11-01 23:06:54 -0700 |
commit | c9a961952d1a057029874f8426b90181f6876034 (patch) | |
tree | 6fdc472bd30aef76a6d650da0f60a5640dfb390d /src/com/android/launcher2/LauncherApplication.java | |
parent | 7da1025bd7f15b04cf55c79b73e94e5e1bc959d9 (diff) | |
download | android_packages_apps_Trebuchet-c9a961952d1a057029874f8426b90181f6876034.tar.gz android_packages_apps_Trebuchet-c9a961952d1a057029874f8426b90181f6876034.tar.bz2 android_packages_apps_Trebuchet-c9a961952d1a057029874f8426b90181f6876034.zip |
Using hdpi icons in Launcher
Known issue: Default activity icon is still showing up as small
Diffstat (limited to 'src/com/android/launcher2/LauncherApplication.java')
-rw-r--r-- | src/com/android/launcher2/LauncherApplication.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/android/launcher2/LauncherApplication.java b/src/com/android/launcher2/LauncherApplication.java index dab2b588a..ed007dd67 100644 --- a/src/com/android/launcher2/LauncherApplication.java +++ b/src/com/android/launcher2/LauncherApplication.java @@ -38,11 +38,13 @@ public class LauncherApplication extends Application { super.onCreate(); - mIconCache = new IconCache(this); - mModel = new LauncherModel(this, mIconCache); + // set sIsScreenXLarge and sScreenDensity *before* creating icon cache sIsScreenXLarge = (getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) == Configuration.SCREENLAYOUT_SIZE_XLARGE; sScreenDensity = getResources().getDisplayMetrics().density; + mIconCache = new IconCache(this); + mModel = new LauncherModel(this, mIconCache); + // Register intent receivers IntentFilter filter = new IntentFilter(Intent.ACTION_PACKAGE_ADDED); filter.addAction(Intent.ACTION_PACKAGE_REMOVED); |