Merge "Remove workarounds to use core platform API" am: 78dcc73e4c am: 31dbe8b122
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1754889 Change-Id: Ib01bbc0cfec540a6e811ac874c4e731734490dfb
This commit is contained in:
@@ -4948,7 +4948,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.
|
||||
InetAddressCompat.clearDnsCache();
|
||||
InetAddress.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().dispatchNetworkConfigurationChange();
|
||||
|
||||
Reference in New Issue
Block a user