mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-02 13:14:39 +00:00
Improved debug info
This commit is contained in:
parent
9fe7b15adc
commit
38f053a098
1 changed files with 3 additions and 2 deletions
|
@ -1944,8 +1944,9 @@ public class Log {
|
||||||
UsageStatsManager usm = (UsageStatsManager) context.getSystemService(Context.USAGE_STATS_SERVICE);
|
UsageStatsManager usm = (UsageStatsManager) context.getSystemService(Context.USAGE_STATS_SERVICE);
|
||||||
int bucket = usm.getAppStandbyBucket();
|
int bucket = usm.getAppStandbyBucket();
|
||||||
boolean inactive = usm.isAppInactive(BuildConfig.APPLICATION_ID);
|
boolean inactive = usm.isAppInactive(BuildConfig.APPLICATION_ID);
|
||||||
sb.append(String.format("Standby bucket: %d-%s;p inactive: %b\r\n",
|
sb.append(String.format("Standby bucket: %d-%b-%s %s\r\n",
|
||||||
bucket, Helper.getStandbyBucketName(bucket), inactive));
|
bucket, inactive, Helper.getStandbyBucketName(bucket),
|
||||||
|
(bucket == UsageStatsManager.STANDBY_BUCKET_ACTIVE && !inactive ? "" : "!!!")));
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean canExact = AlarmManagerCompatEx.canScheduleExactAlarms(context);
|
boolean canExact = AlarmManagerCompatEx.canScheduleExactAlarms(context);
|
||||||
|
|
Loading…
Reference in a new issue