Loading src/com/android/settings/RadioInfo.java +12 −9 Original line number Diff line number Diff line Loading @@ -774,16 +774,19 @@ public class RadioInfo extends Activity { sb.append("\n to ") .append(pdp.getApn().toString()); } String[] activeApnTypes = phone.getActiveApnTypes(); if (activeApnTypes.length > 0) { sb.append("\ninterface: ") .append(phone.getInterfaceName(phone.getActiveApnTypes()[0])) .append(phone.getInterfaceName(activeApnTypes[0])) .append("\naddress: ") .append(phone.getIpAddress(phone.getActiveApnTypes()[0])) .append(phone.getIpAddress(activeApnTypes[0])) .append("\ngateway: ") .append(phone.getGateway(phone.getActiveApnTypes()[0])); String[] dns = phone.getDnsServers(phone.getActiveApnTypes()[0]); .append(phone.getGateway(activeApnTypes[0])); String[] dns = phone.getDnsServers(activeApnTypes[0]); if (dns != null) { sb.append("\ndns: ").append(dns[0]).append(", ").append(dns[1]); } } } else if (dc.isInactive()) { sb.append(" disconnected with last try at ") .append(DateUtils.timeString(dc.getLastFailTime())) Loading Loading
src/com/android/settings/RadioInfo.java +12 −9 Original line number Diff line number Diff line Loading @@ -774,16 +774,19 @@ public class RadioInfo extends Activity { sb.append("\n to ") .append(pdp.getApn().toString()); } String[] activeApnTypes = phone.getActiveApnTypes(); if (activeApnTypes.length > 0) { sb.append("\ninterface: ") .append(phone.getInterfaceName(phone.getActiveApnTypes()[0])) .append(phone.getInterfaceName(activeApnTypes[0])) .append("\naddress: ") .append(phone.getIpAddress(phone.getActiveApnTypes()[0])) .append(phone.getIpAddress(activeApnTypes[0])) .append("\ngateway: ") .append(phone.getGateway(phone.getActiveApnTypes()[0])); String[] dns = phone.getDnsServers(phone.getActiveApnTypes()[0]); .append(phone.getGateway(activeApnTypes[0])); String[] dns = phone.getDnsServers(activeApnTypes[0]); if (dns != null) { sb.append("\ndns: ").append(dns[0]).append(", ").append(dns[1]); } } } else if (dc.isInactive()) { sb.append(" disconnected with last try at ") .append(DateUtils.timeString(dc.getLastFailTime())) Loading