Make Proxy change broadcast sticky
Makes it easier for apps who care. Includes the current values. Change-Id: I5f1d3589a036ebc9910281f97d4780ecda2829f2
This commit is contained in:
@@ -2163,7 +2163,7 @@ public class ConnectivityService extends IConnectivityManager.Stub {
|
|||||||
Intent intent = new Intent(Proxy.PROXY_CHANGE_ACTION);
|
Intent intent = new Intent(Proxy.PROXY_CHANGE_ACTION);
|
||||||
intent.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING);
|
intent.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING);
|
||||||
intent.putExtra(Proxy.EXTRA_PROXY_INFO, proxy);
|
intent.putExtra(Proxy.EXTRA_PROXY_INFO, proxy);
|
||||||
mContext.sendBroadcast(intent);
|
mContext.sendStickyBroadcast(intent);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static class SettingsObserver extends ContentObserver {
|
private static class SettingsObserver extends ContentObserver {
|
||||||
|
|||||||
Reference in New Issue
Block a user