summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/LauncherAppState.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2017-06-02 13:46:55 -0700
committerSunny Goyal <sunnygoyal@google.com>2017-06-02 14:27:29 -0700
commitc6e97692e4144a6fc33eb74fabb73b1aae9ff908 (patch)
tree4eeec70c61cab02f800b0693ed53be237240bf1e /src/com/android/launcher3/LauncherAppState.java
parentccb25a3da88a0e68039f8fa15c9709b181f4e2e8 (diff)
downloadandroid_packages_apps_Trebuchet-c6e97692e4144a6fc33eb74fabb73b1aae9ff908.tar.gz
android_packages_apps_Trebuchet-c6e97692e4144a6fc33eb74fabb73b1aae9ff908.tar.bz2
android_packages_apps_Trebuchet-c6e97692e4144a6fc33eb74fabb73b1aae9ff908.zip
Moving LoaderTask static
Will move it to a separate file in a followup cl. This simplifies dependencies between LauncherModel and LoaderTask which and making it easier to start the loader before Launcher activity is created (as the Callbacks in LauncherModel can change while loader is running). Bug: 34112546 Bug: 37616877 Change-Id: Ie9619c6b0de0e3eb60657c04ae1b58d946c829e9
Diffstat (limited to 'src/com/android/launcher3/LauncherAppState.java')
-rw-r--r--src/com/android/launcher3/LauncherAppState.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/com/android/launcher3/LauncherAppState.java b/src/com/android/launcher3/LauncherAppState.java
index 27ccabea9..cf20febd5 100644
--- a/src/com/android/launcher3/LauncherAppState.java
+++ b/src/com/android/launcher3/LauncherAppState.java
@@ -93,9 +93,7 @@ public class LauncherAppState {
mInvariantDeviceProfile = new InvariantDeviceProfile(mContext);
mIconCache = new IconCache(mContext, mInvariantDeviceProfile);
mWidgetCache = new WidgetPreviewLoader(mContext, mIconCache);
-
- mModel = new LauncherModel(this, mIconCache,
- Utilities.getOverrideObject(AppFilter.class, mContext, R.string.app_filter_class));
+ mModel = new LauncherModel(this, mIconCache, AppFilter.newInstance(mContext));
LauncherAppsCompat.getInstance(mContext).addOnAppsChangedCallback(mModel);