Allow bumpDns() to execute correctly before boot has completed

Change-Id: I5c2cf023e555f49d7e29592f9d1439b3ac367e3d
This commit is contained in:
Stan Chesnutt
2011-01-05 17:14:03 -08:00
parent 2cc8744a3d
commit f444f50b79

View File

@@ -1618,6 +1618,10 @@ public class ConnectivityService extends IConnectivityManager.Stub {
*/ */
Intent intent = new Intent(Intent.ACTION_CLEAR_DNS_CACHE); Intent intent = new Intent(Intent.ACTION_CLEAR_DNS_CACHE);
intent.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING); intent.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING);
/*
* Connectivity events can happen before boot has completed ...
*/
intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT);
mContext.sendBroadcast(intent); mContext.sendBroadcast(intent);
} }