mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-25 15:32:52 +00:00
Log active network info/capabilities
This commit is contained in:
parent
d32d48b5ce
commit
a45bee2e7c
1 changed files with 2 additions and 2 deletions
|
@ -707,7 +707,7 @@ public class Helper {
|
|||
}
|
||||
|
||||
if (log)
|
||||
Log.i("isMetered: active info=" + cm.getNetworkInfo(active));
|
||||
EntityLog.log(context, "isMetered: active info=" + cm.getNetworkInfo(active));
|
||||
|
||||
NetworkCapabilities caps = cm.getNetworkCapabilities(active);
|
||||
if (caps == null) {
|
||||
|
@ -717,7 +717,7 @@ public class Helper {
|
|||
}
|
||||
|
||||
if (log)
|
||||
Log.i("isMetered: active caps=" + caps);
|
||||
EntityLog.log(context, "isMetered: active caps=" + caps);
|
||||
|
||||
if (caps.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_VPN)) {
|
||||
boolean unmetered = caps.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED);
|
||||
|
|
Loading…
Reference in a new issue