Loading packages/SystemUI/res/values/config.xml +2 −0 Original line number Diff line number Diff line Loading @@ -296,5 +296,7 @@ <!-- Duration of the expansion animation in the volume dialog --> <item name="volume_expand_animation_duration" type="integer">300</item> <!-- Whether or not to show battery level text. --> <bool name="config_showBatteryPercentage">false</bool> </resources> packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardStatusBarView.java +3 −1 Original line number Diff line number Diff line Loading @@ -104,7 +104,9 @@ public class KeyguardStatusBarView extends RelativeLayout } else if (mMultiUserSwitch.getParent() == this && mKeyguardUserSwitcherShowing) { removeView(mMultiUserSwitch); } mBatteryLevel.setVisibility(mBatteryCharging ? View.VISIBLE : View.GONE); boolean showBatteryLevel = getResources().getBoolean(R.bool.config_showBatteryPercentage); mBatteryLevel.setVisibility( mBatteryCharging || showBatteryLevel ? View.VISIBLE : View.GONE); } private void updateSystemIconsLayoutParams() { Loading Loading
packages/SystemUI/res/values/config.xml +2 −0 Original line number Diff line number Diff line Loading @@ -296,5 +296,7 @@ <!-- Duration of the expansion animation in the volume dialog --> <item name="volume_expand_animation_duration" type="integer">300</item> <!-- Whether or not to show battery level text. --> <bool name="config_showBatteryPercentage">false</bool> </resources>
packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardStatusBarView.java +3 −1 Original line number Diff line number Diff line Loading @@ -104,7 +104,9 @@ public class KeyguardStatusBarView extends RelativeLayout } else if (mMultiUserSwitch.getParent() == this && mKeyguardUserSwitcherShowing) { removeView(mMultiUserSwitch); } mBatteryLevel.setVisibility(mBatteryCharging ? View.VISIBLE : View.GONE); boolean showBatteryLevel = getResources().getBoolean(R.bool.config_showBatteryPercentage); mBatteryLevel.setVisibility( mBatteryCharging || showBatteryLevel ? View.VISIBLE : View.GONE); } private void updateSystemIconsLayoutParams() { Loading