Merge "Remove workarounds to use core platform API" am: 78dcc73e4c am: 31dbe8b122

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1754889

Change-Id: Ib01bbc0cfec540a6e811ac874c4e731734490dfb
This commit is contained in:
Remi NGUYEN VAN
2021-07-02 04:44:46 +00:00
committed by Automerger Merge Worker
6 changed files with 10 additions and 175 deletions

View File

@@ -4948,7 +4948,7 @@ public class ConnectivityManager {
Log.e(TAG, "Can't set proxy properties", e);
}
// Must flush DNS cache as new network may have different DNS resolutions.
InetAddressCompat.clearDnsCache();
InetAddress.clearDnsCache();
// Must flush socket pool as idle sockets will be bound to previous network and may
// cause subsequent fetches to be performed on old network.
NetworkEventDispatcher.getInstance().dispatchNetworkConfigurationChange();