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:
@@ -172,7 +172,6 @@ public class BatteryEntry {
|
|||||||
mName = mDefaultPackageName;
|
mName = mDefaultPackageName;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
getQuickNameIconForUid(uid, packages, loadDataInBackground);
|
|
||||||
mTimeInForegroundMs =
|
mTimeInForegroundMs =
|
||||||
uidBatteryConsumer.getTimeInStateMs(UidBatteryConsumer.STATE_FOREGROUND);
|
uidBatteryConsumer.getTimeInStateMs(UidBatteryConsumer.STATE_FOREGROUND);
|
||||||
mTimeInBackgroundMs =
|
mTimeInBackgroundMs =
|
||||||
|
Reference in New Issue
Block a user