Merge "Add InetAddressCompat" am: e1da163302 am: 2aec625379 am: 9bdd98e71d

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1645289

Change-Id: I90dba64e96080cbd29f538de6dcb514dea4b6cbd
This commit is contained in:
Remi NGUYEN VAN
2021-03-19 02:52:58 +00:00
committed by Automerger Merge Worker
3 changed files with 79 additions and 3 deletions

View File

@@ -4659,7 +4659,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();