This commit is contained in:
M66B
2022-02-01 08:28:03 +01:00
parent d3e2c63e23
commit 1b39ecee26
2 changed files with 3 additions and 1 deletions

View File

@@ -598,6 +598,8 @@ public class Helper {
static String getStandbyBucketName(int bucket) {
switch (bucket) {
case 5:
return "exempted";
case UsageStatsManager.STANDBY_BUCKET_ACTIVE:
return "active";
case UsageStatsManager.STANDBY_BUCKET_WORKING_SET:

View File

@@ -1937,7 +1937,7 @@ public class Log {
boolean inactive = usm.isAppInactive(BuildConfig.APPLICATION_ID);
sb.append(String.format("Standby bucket: %d-%b-%s %s\r\n",
bucket, inactive, Helper.getStandbyBucketName(bucket),
(bucket == UsageStatsManager.STANDBY_BUCKET_ACTIVE && !inactive ? "" : "!!!")));
(bucket <= UsageStatsManager.STANDBY_BUCKET_ACTIVE && !inactive ? "" : "!!!")));
}
boolean canExact = AlarmManagerCompatEx.canScheduleExactAlarms(context);