Merge "Fix screen time not updated issues." into main
This commit is contained in:
committed by
Android (Google) Code Review
commit
7f559ca540
@@ -236,10 +236,8 @@ public class PowerUsageAdvanced extends PowerUsageBase {
|
||||
final int hourlyIndex = mBatteryChartPreferenceController.getHourlyChartIndex();
|
||||
final String slotInformation = mBatteryChartPreferenceController.getSlotInformation();
|
||||
final BatteryDiffData slotUsageData = mBatteryUsageMap.get(dailyIndex).get(hourlyIndex);
|
||||
if (slotUsageData != null) {
|
||||
mScreenOnTimeController.handleSceenOnTimeUpdated(
|
||||
slotUsageData.getScreenOnTime(), slotInformation);
|
||||
}
|
||||
slotUsageData != null ? slotUsageData.getScreenOnTime() : 0L, slotInformation);
|
||||
// Hide card tips if the related highlight slot was clicked.
|
||||
if (isAppsAnomalyEventFocused()) {
|
||||
mBatteryTipsController.acceptTipsCard();
|
||||
|
Reference in New Issue
Block a user