From 980eb545ca095e5470092e6bf35c2c92e3128d8c Mon Sep 17 00:00:00 2001 From: Selim Gurun Date: Mon, 5 May 2014 18:59:07 -0700 Subject: [PATCH] Limit broadcast of data reduction proxy change intent Bug: 12492817 Broadcast the intent to receivers that belong to current user. Change-Id: I71bfc47bce485c6fe190c05212afdb136c3304db --- src/com/android/settings/DevelopmentSettings.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/android/settings/DevelopmentSettings.java b/src/com/android/settings/DevelopmentSettings.java index 328cae9961d..c666dd315ab 100644 --- a/src/com/android/settings/DevelopmentSettings.java +++ b/src/com/android/settings/DevelopmentSettings.java @@ -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() {