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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user