summaryrefslogtreecommitdiff
path: root/framework/src/android/net/ConnectivityManager.java
diff options
context:
space:
mode:
authorRemi NGUYEN VAN <reminv@google.com>2021-03-18 23:27:19 +0900
committerRemi NGUYEN VAN <reminv@google.com>2021-03-18 23:54:04 +0900
commit342ddddd9dbe2ee06daede95ff7bec81d5226e65 (patch)
treef426383162c178f014657191f40d0c5b6f9889f7 /framework/src/android/net/ConnectivityManager.java
parenteb6aa22205385bf334031382d17357f597a01ee6 (diff)
Add InetAddressCompat
Although the InetAddress symbols used by Connectivity are stable core platform API, and should be usable, the core_current stubs are not yet part of the module_current API. Until that is fixed, add an InetAddressCompat utility that calls the three static methods by reflection. Test: atest FrameworksNetTests CtsNetTestCases Bug: 183097033 Change-Id: I797009aeff1d39ae2dc06ef69d2e235689b43c89
Diffstat (limited to 'framework/src/android/net/ConnectivityManager.java')
-rw-r--r--framework/src/android/net/ConnectivityManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/src/android/net/ConnectivityManager.java b/framework/src/android/net/ConnectivityManager.java
index a621233e32..dcb80e6240 100644
--- a/framework/src/android/net/ConnectivityManager.java
+++ b/framework/src/android/net/ConnectivityManager.java
@@ -4639,7 +4639,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();