Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 980eb545 authored by Selim Gurun's avatar Selim Gurun
Browse files

Limit broadcast of data reduction proxy change intent

Bug: 12492817

Broadcast the intent to receivers that belong to current user.

Change-Id: I71bfc47bce485c6fe190c05212afdb136c3304db
parent 029c13e1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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() {