From c9ad22c38be54dcf10af3e2d0b2176da9f183c9a Mon Sep 17 00:00:00 2001 From: Fabrice Di Meglio Date: Wed, 23 Jul 2014 19:32:57 -0700 Subject: [PATCH] More code cleaning for the Home intent filters - remove the Intent.CATEGORY_HOME as it is not useful and cannot be used into an Intent filter Change-Id: I516188ea1c662c3277c64194c229a2e1c03a4e6a --- src/com/android/settings/HomeSettings.java | 1 - src/com/android/settings/dashboard/DashboardSummary.java | 1 - 2 files changed, 2 deletions(-) diff --git a/src/com/android/settings/HomeSettings.java b/src/com/android/settings/HomeSettings.java index fe56d94ac27..845fe1e79c9 100644 --- a/src/com/android/settings/HomeSettings.java +++ b/src/com/android/settings/HomeSettings.java @@ -222,7 +222,6 @@ public class HomeSettings extends SettingsPreferenceFragment implements Indexabl filter.addAction(Intent.ACTION_PACKAGE_REMOVED); filter.addAction(Intent.ACTION_PACKAGE_CHANGED); filter.addAction(Intent.ACTION_PACKAGE_REPLACED); - filter.addCategory(Intent.CATEGORY_HOME); filter.addDataScheme("package"); getActivity().registerReceiver(mHomePackageReceiver, filter); diff --git a/src/com/android/settings/dashboard/DashboardSummary.java b/src/com/android/settings/dashboard/DashboardSummary.java index a49505a75a0..cf398d7bec5 100644 --- a/src/com/android/settings/dashboard/DashboardSummary.java +++ b/src/com/android/settings/dashboard/DashboardSummary.java @@ -74,7 +74,6 @@ public class DashboardSummary extends Fragment { filter.addAction(Intent.ACTION_PACKAGE_REMOVED); filter.addAction(Intent.ACTION_PACKAGE_CHANGED); filter.addAction(Intent.ACTION_PACKAGE_REPLACED); - filter.addCategory(Intent.CATEGORY_HOME); filter.addDataScheme("package"); getActivity().registerReceiver(mHomePackageReceiver, filter); }