From 38f053a098cdc0020338088ed34f2ebef6bed5cb Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 31 Jan 2022 13:44:42 +0100 Subject: [PATCH] Improved debug info --- app/src/main/java/eu/faircode/email/Log.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/Log.java b/app/src/main/java/eu/faircode/email/Log.java index 2f8956f041..2320842268 100644 --- a/app/src/main/java/eu/faircode/email/Log.java +++ b/app/src/main/java/eu/faircode/email/Log.java @@ -1944,8 +1944,9 @@ public class Log { UsageStatsManager usm = (UsageStatsManager) context.getSystemService(Context.USAGE_STATS_SERVICE); int bucket = usm.getAppStandbyBucket(); boolean inactive = usm.isAppInactive(BuildConfig.APPLICATION_ID); - sb.append(String.format("Standby bucket: %d-%s;p inactive: %b\r\n", - bucket, Helper.getStandbyBucketName(bucket), inactive)); + sb.append(String.format("Standby bucket: %d-%b-%s %s\r\n", + bucket, inactive, Helper.getStandbyBucketName(bucket), + (bucket == UsageStatsManager.STANDBY_BUCKET_ACTIVE && !inactive ? "" : "!!!"))); } boolean canExact = AlarmManagerCompatEx.canScheduleExactAlarms(context);