Merge "Send app restrictions broadcast to stopped apps as well" into jb-mr2-dev

This commit is contained in:
Amith Yamasani
2013-04-09 18:09:40 +00:00
committed by Android (Google) Code Review

View File

@@ -425,6 +425,7 @@ public class AppRestrictionsFragment extends SettingsPreferenceFragment implemen
intent.setPackage(packageName);
intent.putParcelableArrayListExtra(Intent.EXTRA_RESTRICTIONS,
new ArrayList<RestrictionEntry>(oldEntries));
intent.addFlags(Intent.FLAG_INCLUDE_STOPPED_PACKAGES);
getActivity().sendOrderedBroadcast(intent, null,
new RestrictionsResultReceiver(packageName, preference),
null, Activity.RESULT_OK, null, null);