diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2015-03-20 19:29:12 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-03-20 19:29:12 +0000 |
commit | 71c3baf5ebc520d5146946e0d7907a5dc12366db (patch) | |
tree | 0023f9763661bb0b90be8e4eb1205213f058e3fb /src/com/android/launcher3 | |
parent | 091440a9cb9d4f42406631004aa484cbb79214ca (diff) | |
parent | 27595796b3c0373d1a1d56af9a30392bc7016624 (diff) | |
download | android_packages_apps_Trebuchet-71c3baf5ebc520d5146946e0d7907a5dc12366db.tar.gz android_packages_apps_Trebuchet-71c3baf5ebc520d5146946e0d7907a5dc12366db.tar.bz2 android_packages_apps_Trebuchet-71c3baf5ebc520d5146946e0d7907a5dc12366db.zip |
Merge "Removing unnecessary intent-filter construction" into ub-launcher3-burnaby
Diffstat (limited to 'src/com/android/launcher3')
-rw-r--r-- | src/com/android/launcher3/LauncherAppState.java | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/com/android/launcher3/LauncherAppState.java b/src/com/android/launcher3/LauncherAppState.java index d5d78e97d..9082276e4 100644 --- a/src/com/android/launcher3/LauncherAppState.java +++ b/src/com/android/launcher3/LauncherAppState.java @@ -108,18 +108,14 @@ public class LauncherAppState implements DeviceProfile.DeviceProfileCallbacks { mAppFilter = AppFilter.loadByName(sContext.getString(R.string.app_filter_class)); mBuildInfo = BuildInfo.loadByName(sContext.getString(R.string.build_info_class)); mModel = new LauncherModel(this, mIconCache, mAppFilter); - final LauncherAppsCompat launcherApps = LauncherAppsCompat.getInstance(sContext); - launcherApps.addOnAppsChangedCallback(mModel); + + LauncherAppsCompat.getInstance(sContext).addOnAppsChangedCallback(mModel); // Register intent receivers IntentFilter filter = new IntentFilter(); filter.addAction(Intent.ACTION_LOCALE_CHANGED); filter.addAction(Intent.ACTION_CONFIGURATION_CHANGED); - sContext.registerReceiver(mModel, filter); - filter = new IntentFilter(); filter.addAction(SearchManager.INTENT_GLOBAL_SEARCH_ACTIVITY_CHANGED); - sContext.registerReceiver(mModel, filter); - filter = new IntentFilter(); filter.addAction(SearchManager.INTENT_ACTION_SEARCHABLES_CHANGED); sContext.registerReceiver(mModel, filter); |