Fix b/242809981 Charge battery to 100% when battery usage page opened, the chart will refresh, but the app list isn't refreshed in that case.

Bug: 242809981
Fix: 242809981
Test: manual
Change-Id: I303bbc2679f70ef16636c28f6364381f49457387
This commit is contained in:
Zaiyue Xue
2022-08-17 16:47:55 +08:00
committed by YK Hung
parent aef0cde406
commit e716055e45

View File

@@ -343,6 +343,7 @@ public class BatteryChartPreferenceController extends AbstractPreferenceControll
mDailyChartView.setVisibility(View.GONE);
mHourlyChartView.setVisibility(View.VISIBLE);
mHourlyChartView.setViewModel(null);
removeAndCacheAllPrefs();
addFooterPreferenceIfNeeded(false);
return false;
}