Merge changes I93d4d089,I4f09f9e5 into tm-qpr-dev am: f5a9766041
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/20280700 Change-Id: I7d8393abd95e6a82f6d8b7540171e60d6b3ccc07 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -108,6 +108,7 @@ public class BatteryChartPreferenceController extends AbstractPreferenceControll
|
||||
|
||||
private boolean mIs24HourFormat;
|
||||
private boolean mIsFooterPrefAdded = false;
|
||||
private boolean mHourlyChartVisible = true;
|
||||
private View mBatteryChartViewGroup;
|
||||
private View mCategoryTitleView;
|
||||
private PreferenceScreen mPreferenceScreen;
|
||||
@@ -690,9 +691,10 @@ public class BatteryChartPreferenceController extends AbstractPreferenceControll
|
||||
}
|
||||
|
||||
private void animateBatteryHourlyChartView(final boolean visible) {
|
||||
if (mHourlyChartView == null) {
|
||||
if (mHourlyChartView == null || mHourlyChartVisible == visible) {
|
||||
return;
|
||||
}
|
||||
mHourlyChartVisible = visible;
|
||||
|
||||
if (visible) {
|
||||
mHourlyChartView.setVisibility(View.VISIBLE);
|
||||
|
Reference in New Issue
Block a user