Update the usage slot info in database

- For personal/work profile, always send data to db
- For private profile, skip load data in period job

Bug: 331720433
Bug: 324191159
Test: manual
Change-Id: I77526dfdc837a6edaa9184bf3c751a7455b839a8
This commit is contained in:
mxyyiyi
2024-04-11 13:33:07 +08:00
parent 860bd52451
commit 749a642be6
4 changed files with 15 additions and 17 deletions

View File

@@ -165,7 +165,7 @@ public final class BatteryUsageDataLoader {
if (!isFullChargeStart) {
// No app usage data or battery diff data at this time.
final UserIdsSeries userIdsSeries =
new UserIdsSeries(context, /* mainUserOnly= */ true);
new UserIdsSeries(context, /* isNonUIRequest= */ true);
if (!userIdsSeries.isCurrentUserLocked()) {
loadAppUsageData(context, userIdsSeries);
preprocessBatteryUsageSlots(context, userIdsSeries);