Use updated NetworkEventDispatcher API

Bug: 185153775
Ignore-AOSP-First: addressing API council comments with deadline
Test: m
Change-Id: Iae3cec4f751e1f74ccd26db6f22f55cf21dfc04a
This commit is contained in:
Orion Hodson
2021-05-25 21:02:02 +01:00
parent 58b943a701
commit 1f4fa9ffd5

View File

@@ -4918,7 +4918,7 @@ public class ConnectivityManager {
InetAddressCompat.clearDnsCache(); InetAddressCompat.clearDnsCache();
// Must flush socket pool as idle sockets will be bound to previous network and may // Must flush socket pool as idle sockets will be bound to previous network and may
// cause subsequent fetches to be performed on old network. // cause subsequent fetches to be performed on old network.
NetworkEventDispatcher.getInstance().onNetworkConfigurationChanged(); NetworkEventDispatcher.getInstance().dispatchNetworkConfigurationChange();
} }
return true; return true;