From 872d4fba77cf37e4e4d3b576cd4aaeb324c73980 Mon Sep 17 00:00:00 2001 From: Amith Yamasani Date: Tue, 9 Apr 2013 11:05:18 -0700 Subject: [PATCH] Send app restrictions broadcast to stopped apps as well Otherwise the restrictions won't be shown for apps that haven't been launched yet. Bug: 8577600 Change-Id: I1d0d93553456dfedfb749e3d8262911af4362a80 --- src/com/android/settings/users/AppRestrictionsFragment.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/com/android/settings/users/AppRestrictionsFragment.java b/src/com/android/settings/users/AppRestrictionsFragment.java index 6154bdfc5a6..e4606d77ea3 100644 --- a/src/com/android/settings/users/AppRestrictionsFragment.java +++ b/src/com/android/settings/users/AppRestrictionsFragment.java @@ -425,6 +425,7 @@ public class AppRestrictionsFragment extends SettingsPreferenceFragment implemen intent.setPackage(packageName); intent.putParcelableArrayListExtra(Intent.EXTRA_RESTRICTIONS, new ArrayList(oldEntries)); + intent.addFlags(Intent.FLAG_INCLUDE_STOPPED_PACKAGES); getActivity().sendOrderedBroadcast(intent, null, new RestrictionsResultReceiver(packageName, preference), null, Activity.RESULT_OK, null, null);