Fix formatting error in WifiStateChangeService

It's %d, not %i.
This commit is contained in:
Daniel Martí 2015-09-10 18:29:38 -07:00
parent 35c5f063f1
commit cc8b9bb41d

View File

@ -205,8 +205,8 @@ public class WifiStateChangeService extends Service {
return;
// the following methods were not added until android-9/Gingerbread
for (InterfaceAddress address : netIf.getInterfaceAddresses()) {
if (inetAddress.equals(address.getAddress()) && ! TextUtils.isEmpty(FDroidApp.ipAddressString)) {
String cidr = String.format("%s/%i", FDroidApp.ipAddressString, address.getNetworkPrefixLength());
if (inetAddress.equals(address.getAddress()) && !TextUtils.isEmpty(FDroidApp.ipAddressString)) {
String cidr = String.format("%s/%d", FDroidApp.ipAddressString, address.getNetworkPrefixLength());
FDroidApp.subnetInfo = (new SubnetUtils(cidr)).getInfo();
break;
}