1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-30 11:45:36 +00:00

Added remark

This commit is contained in:
M66B 2022-01-31 16:22:58 +01:00
parent 79dde3f351
commit e196b9f0ae

View file

@ -1931,6 +1931,7 @@ public class Log {
Helper.isCharging(context), Helper.getBatteryLevel(context)));
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
// https://developer.android.com/reference/android/app/usage/UsageStatsManager
UsageStatsManager usm = (UsageStatsManager) context.getSystemService(Context.USAGE_STATS_SERVICE);
int bucket = usm.getAppStandbyBucket();
boolean inactive = usm.isAppInactive(BuildConfig.APPLICATION_ID);