Don't load battery entry name and icon in offline job to improve memory usage.

Risk: low, the name and icon will be always loaded again in the UI.

Bug: 280720236
Test: manual
Change-Id: I86f50e953ffd4910acbf9f318e1cc1caa3a7a232
This commit is contained in:
Zaiyue Xue
2023-06-08 17:08:41 +08:00
parent a99c52e160
commit 65cb6ef230

View File

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