Limit broadcast of data reduction proxy change intent

Bug: 12492817

Broadcast the intent to receivers that belong to current user.

Change-Id: I71bfc47bce485c6fe190c05212afdb136c3304db
This commit is contained in:
Selim Gurun
2014-05-05 18:59:07 -07:00
parent 029c13e1d9
commit 980eb545ca

View File

@@ -1206,7 +1206,8 @@ public class DevelopmentSettings extends RestrictedSettingsFragment
Settings.Secure.WEBVIEW_DATA_REDUCTION_PROXY,
mWebViewDataReductionProxy.isChecked() ? 1 : 0);
Intent intent = new Intent(WebView.DATA_REDUCTION_PROXY_SETTING_CHANGED);
getActivity().sendBroadcast(intent);
// Broadcast to all apps running as current user.
getActivity().sendBroadcastAsUser(intent, UserHandle.CURRENT);
}
private void updateWebViewDataReductionProxyOptions() {