Make Proxy change broadcast sticky

Makes it easier for apps who care.  Includes the current values.

Change-Id: I5f1d3589a036ebc9910281f97d4780ecda2829f2
This commit is contained in:
Robert Greenwalt
2010-12-06 11:29:17 -08:00
parent 82cde1324d
commit d93dc8f82d

View File

@@ -2163,7 +2163,7 @@ public class ConnectivityService extends IConnectivityManager.Stub {
Intent intent = new Intent(Proxy.PROXY_CHANGE_ACTION);
intent.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING);
intent.putExtra(Proxy.EXTRA_PROXY_INFO, proxy);
mContext.sendBroadcast(intent);
mContext.sendStickyBroadcast(intent);
}
private static class SettingsObserver extends ContentObserver {