Merge "Also clear the foreground service usage time for BatteryDiffEntry should hide background usage time." into main

This commit is contained in:
Treehugger Robot
2024-10-09 09:48:10 +00:00
committed by Android (Google) Code Review
2 changed files with 60 additions and 0 deletions

View File

@@ -169,6 +169,7 @@ public class BatteryDiffData {
}
if (packageName != null && hideBackgroundUsageTimeSet.contains(packageName)) {
entry.mBackgroundUsageTimeInMs = 0;
entry.mForegroundServiceUsageTimeInMs = 0;
}
}
}