Refactor the BatteryInfo
Move the battery stats logic to background because it is time consuming. Bug: 112262502 Test: robotest still pass Change-Id: I794bc82a4f1b5ae5a883c89d447116601a86558f
This commit is contained in:
@@ -54,7 +54,7 @@ public class BatteryHistoryPreference extends Preference {
|
||||
BatteryInfo.getBatteryInfo(getContext(), info -> {
|
||||
mBatteryInfo = info;
|
||||
notifyChanged();
|
||||
}, batteryStats.getStats(), false);
|
||||
}, batteryStats, false);
|
||||
}
|
||||
|
||||
public void setBottomSummary(CharSequence text) {
|
||||
|
Reference in New Issue
Block a user