Allow bumpDns() to execute correctly before boot has completed am: f444f50b79

Original change: undetermined

Change-Id: I3a3dee7914252b75568d097f349c73c5bad517c6
This commit is contained in:
Stan Chesnutt
2021-05-31 11:00:43 +00:00
committed by Automerger Merge Worker

View File

@@ -1618,6 +1618,10 @@ public class ConnectivityService extends IConnectivityManager.Stub {
*/
Intent intent = new Intent(Intent.ACTION_CLEAR_DNS_CACHE);
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);
}