Merge "Add InetAddressCompat"
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user