Merge "Replace the hidden getActiveLinkProperties usage"

This commit is contained in:
Chiachang Wang
2021-03-15 09:42:16 +00:00
committed by Gerrit Code Review

View File

@@ -126,7 +126,7 @@ public class AdbIpAddressPreferenceController extends AbstractConnectivityPrefer
* @return the formatted and newline-separated IP addresses, or null if none. * @return the formatted and newline-separated IP addresses, or null if none.
*/ */
private static String getDefaultIpAddresses(ConnectivityManager cm) { private static String getDefaultIpAddresses(ConnectivityManager cm) {
LinkProperties prop = cm.getActiveLinkProperties(); LinkProperties prop = cm.getLinkProperties(cm.getActiveNetwork());
return formatIpAddresses(prop); return formatIpAddresses(prop);
} }