Fix formatting error in WifiStateChangeService
It's %d, not %i.
This commit is contained in:
parent
35c5f063f1
commit
cc8b9bb41d
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user