Added WiFi debug indication

This commit is contained in:
M66B 2015-11-15 17:13:25 +01:00
parent 557397bd39
commit 39442fe1b7
2 changed files with 4 additions and 2 deletions

View File

@ -184,6 +184,7 @@ public class ActivitySettings extends AppCompatActivity implements SharedPrefere
.append(ni.isRoaming() ? " ROAMING" : "")
.append("\r\n");
}
sb.append(String.format("WiFi %B\r\n", Util.isWifiActive(this)));
sb.append(String.format("Metered %B\r\n", Util.isMeteredNetwork(this)));
pref_technical.setSummary(sb.toString());
}

View File

@ -169,8 +169,9 @@ public class Util {
sb.append(String.format("Id: %s\r\n", Build.ID));
sb.append(String.format("Fingerprint: %b\r\n", hasValidFingerprint(tag, context)));
sb.append(String.format("VPN dialogs: %b\r\n", isPackageInstalled("com.android.vpndialogs", context)));
sb.append(String.format("Interactive: %b\r\n", Util.isInteractive(context)));
sb.append(String.format("Metered: %b\r\n", Util.isMeteredNetwork(context)));
sb.append(String.format("Interactive: %b\r\n", isInteractive(context)));
sb.append(String.format("WiFi: %b\r\n", isWifiActive(context)));
sb.append(String.format("Metered: %b\r\n", isMeteredNetwork(context)));
ConnectivityManager cm = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);
for (Network network : cm.getAllNetworks()) {