Merge "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."
This commit is contained in:
committed by
Android (Google) Code Review
commit
2bc09010d8
@@ -343,6 +343,7 @@ public class BatteryChartPreferenceController extends AbstractPreferenceControll
|
|||||||
mDailyChartView.setVisibility(View.GONE);
|
mDailyChartView.setVisibility(View.GONE);
|
||||||
mHourlyChartView.setVisibility(View.VISIBLE);
|
mHourlyChartView.setVisibility(View.VISIBLE);
|
||||||
mHourlyChartView.setViewModel(null);
|
mHourlyChartView.setViewModel(null);
|
||||||
|
removeAndCacheAllPrefs();
|
||||||
addFooterPreferenceIfNeeded(false);
|
addFooterPreferenceIfNeeded(false);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user