Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 763e6690 authored by Zhao Wei Liew's avatar Zhao Wei Liew Committed by Steve Kondik
Browse files

Revert "SystemUI: Show percentage of battery"

CM has its own battery customization options.
Revert the original CAF commit as it is unnecessary.

This reverts commit 296a682a.

Change-Id: I1e806d89cfa56ff18f91cc8ae7b7f65954f5f92b
parent f6df92c7
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -299,9 +299,6 @@
    <!-- When true, show charging animation -->
    <bool name="config_show_battery_charging_anim">false</bool>

    <!-- Whether or not to show battery level text. -->
    <bool name="config_showBatteryPercentage">false</bool>

    <bool name="config_show4gForIWlan">false</bool>
    <bool name="config_showSignalForIWlan">false</bool>
</resources>
+1 −3
Original line number Diff line number Diff line
@@ -149,9 +149,7 @@ public class KeyguardStatusBarView extends RelativeLayout
        } else if (mMultiUserSwitch.getParent() == this && mKeyguardUserSwitcherShowing) {
            removeView(mMultiUserSwitch);
        }
        boolean showBatteryLevel = getResources().getBoolean(R.bool.config_showBatteryPercentage);
        mBatteryLevel.setVisibility(
                mBatteryCharging || showBatteryLevel ? View.VISIBLE : View.GONE);
        mBatteryLevel.setVisibility(mBatteryCharging ? View.VISIBLE : View.GONE);
    }

    private void updateSystemIconsLayoutParams() {