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 int hourlyIndex = mBatteryChartPreferenceController.getHourlyChartIndex();
|
||||||
final String slotInformation = mBatteryChartPreferenceController.getSlotInformation();
|
final String slotInformation = mBatteryChartPreferenceController.getSlotInformation();
|
||||||
final BatteryDiffData slotUsageData = mBatteryUsageMap.get(dailyIndex).get(hourlyIndex);
|
final BatteryDiffData slotUsageData = mBatteryUsageMap.get(dailyIndex).get(hourlyIndex);
|
||||||
if (slotUsageData != null) {
|
|
||||||
mScreenOnTimeController.handleSceenOnTimeUpdated(
|
mScreenOnTimeController.handleSceenOnTimeUpdated(
|
||||||
slotUsageData.getScreenOnTime(), slotInformation);
|
slotUsageData != null ? slotUsageData.getScreenOnTime() : 0L, slotInformation);
|
||||||
}
|
|
||||||
// Hide card tips if the related highlight slot was clicked.
|
// Hide card tips if the related highlight slot was clicked.
|
||||||
if (isAppsAnomalyEventFocused()) {
|
if (isAppsAnomalyEventFocused()) {
|
||||||
mBatteryTipsController.acceptTipsCard();
|
mBatteryTipsController.acceptTipsCard();
|
||||||
|
Reference in New Issue
Block a user