mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-30 11:45:36 +00:00
Added remark
This commit is contained in:
parent
79dde3f351
commit
e196b9f0ae
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue