Merge "Add InetAddressCompat"
This commit is contained in:
commit
871321f41b
1 changed files with 79 additions and 3 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue