From a7b853fb60cd2e42c849fb03e0d4a03b3dc4d9e7 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 1 Mar 2025 14:10:49 +0100 Subject: [PATCH] Improved debug info --- app/src/main/java/eu/faircode/email/DebugHelper.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/DebugHelper.java b/app/src/main/java/eu/faircode/email/DebugHelper.java index e9ef12ef67..90175e53c3 100644 --- a/app/src/main/java/eu/faircode/email/DebugHelper.java +++ b/app/src/main/java/eu/faircode/email/DebugHelper.java @@ -839,11 +839,13 @@ public class DebugHelper { int blocked = db.contact().countBlocked(account.id); boolean unmetered = false; + boolean vpn_only = false; boolean ignore_schedule = false; try { if (account.conditions != null) { JSONObject jconditions = new JSONObject(account.conditions); unmetered = jconditions.optBoolean("unmetered"); + vpn_only = jconditions.optBoolean("vpn_only"); ignore_schedule = jconditions.optBoolean("ignore_schedule"); } } catch (Throwable ignored) { @@ -865,6 +867,7 @@ public class DebugHelper { " rules=" + db.rule().countTotal(account.id, null) + " ops=" + db.operation().getOperationCount(account.id) + " schedule=" + (!ignore_schedule) + (ignore_schedule ? " !!!" : "") + + " vpn_only=" + vpn_only + (vpn_only ? " !!!" : "") + " unmetered=" + unmetered + (unmetered ? " !!!" : "") + " quota=" + (account.quota_usage == null ? "-" : Helper.humanReadableByteCount(account.quota_usage)) + "/" + (account.quota_limit == null ? "-" : Helper.humanReadableByteCount(account.quota_limit)) +