Don't load battery entry names and icons in offline job to improve memory usage.

Risk: low (The name and icon will be always loaded again in the UI.)

Bug: 280720236
Fix: 280720236
Test: manual
Change-Id: I86f50e953ffd4910acbf9f318e1cc1caa3a7a232
Merged-In: I86f50e953ffd4910acbf9f318e1cc1caa3a7a232
This commit is contained in:
Zaiyue Xue
2023-06-08 17:08:41 +08:00
parent 01637b556e
commit ec032710dc

View File

@@ -172,7 +172,6 @@ public class BatteryEntry {
mName = mDefaultPackageName;
}
}
getQuickNameIconForUid(uid, packages, loadDataInBackground);
mTimeInForegroundMs =
uidBatteryConsumer.getTimeInStateMs(UidBatteryConsumer.STATE_FOREGROUND);
mTimeInBackgroundMs =