Merge "Add InetAddressCompat"

This commit is contained in:
Remi NGUYEN VAN
2021-03-18 23:58:16 +00:00
committed by Gerrit Code Review
3 changed files with 79 additions and 3 deletions

View File

@@ -4661,7 +4661,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.
InetAddress.clearDnsCache();
InetAddressCompat.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().onNetworkConfigurationChanged();