Don't show estimate with center notch
On devices with center notch, don't show the remaining battery estimate, but default to percentage. Test: manual Fixes: 185144346 Change-Id: I85caa33c66c3185a9bb1612b5f7d0237fe57842a
This commit is contained in:
@@ -400,12 +400,14 @@ public class QuickStatusBarHeader extends FrameLayout {
|
||||
mClockIconsSeparatorLayoutParams.width = 0;
|
||||
setSeparatorVisibility(false);
|
||||
mShowClockIconsSeparator = false;
|
||||
mBatteryRemainingIcon.setPercentShowMode(BatteryMeterView.MODE_ESTIMATE);
|
||||
} else {
|
||||
datePrivacySeparatorLayoutParams.width = topCutout.width();
|
||||
mDatePrivacySeparator.setVisibility(View.VISIBLE);
|
||||
mClockIconsSeparatorLayoutParams.width = topCutout.width();
|
||||
mShowClockIconsSeparator = true;
|
||||
setSeparatorVisibility(mKeyguardExpansionFraction == 0f);
|
||||
mBatteryRemainingIcon.setPercentShowMode(BatteryMeterView.MODE_ON);
|
||||
}
|
||||
}
|
||||
mDatePrivacySeparator.setLayoutParams(datePrivacySeparatorLayoutParams);
|
||||
|
||||
Reference in New Issue
Block a user