1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-26 17:57:16 +00:00

Simplification

This commit is contained in:
M66B 2023-03-19 09:14:33 +01:00
parent 4b9eca8dd7
commit 45aeddbf05

View file

@ -2340,8 +2340,13 @@ public class Log {
String ds = ConnectionHelper.getDataSaving(context);
boolean vpn = ConnectionHelper.vpnActive(context);
boolean ng = Helper.isInstalled(context, "eu.faircode.netguard");
boolean tc = Helper.isInstalled(context, "net.kollnig.missioncontrol");
boolean ng = false;
try {
PackageManager pm = context.getPackageManager();
pm.getPackageInfo("eu.faircode.netguard", 0);
ng = true;
} catch (Throwable ignored) {
}
Integer bucket = null;
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P)
@ -2374,7 +2379,7 @@ public class Log {
"metered=" + metered + (metered ? "" : " !!!") +
" saving=" + ds + ("enabled".equals(ds) ? " !!!" : "") +
" vpn=" + vpn + (vpn ? " !!!" : "") +
" ng=" + ng + " tc=" + tc + "\r\n" +
" ng=" + ng + "\r\n" +
"optimizing=" + (ignoring == null ? null : !ignoring) + (Boolean.FALSE.equals(ignoring) ? " !!!" : "") +
" bucket=" + (bucket == null ? null :
Helper.getStandbyBucketName(bucket) +