Merge "Replace the hidden getActiveLinkProperties usage" am: d709b55250
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1635200 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I3d7e876c9fb8bf81a300b6b76154672e0d3b04c7
This commit is contained in:
@@ -126,7 +126,7 @@ public class AdbIpAddressPreferenceController extends AbstractConnectivityPrefer
|
||||
* @return the formatted and newline-separated IP addresses, or null if none.
|
||||
*/
|
||||
private static String getDefaultIpAddresses(ConnectivityManager cm) {
|
||||
LinkProperties prop = cm.getActiveLinkProperties();
|
||||
LinkProperties prop = cm.getLinkProperties(cm.getActiveNetwork());
|
||||
return formatIpAddresses(prop);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user