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

Commit 057cdd8b authored by narinder Rana's avatar narinder Rana
Browse files

update drawPercentInside : undo

parent c6cff8d8
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -409,7 +409,7 @@ public class BatteryMeterView extends LinearLayout implements
        final int showBatteryPercent = LineageSettings.System.getIntForUser(
                getContext().getContentResolver(), STATUS_BAR_SHOW_BATTERY_PERCENT, 0, mUser);
        final boolean drawPercentInside = mShowPercentMode == MODE_DEFAULT &&
                showBatteryPercent == 2;
                showBatteryPercent == 1;
        final boolean drawPercentOnly = mShowPercentMode == MODE_ESTIMATE ||
                showBatteryPercent == 2;
        if (drawPercentOnly && (!drawPercentInside || mCharging) ||
@@ -534,6 +534,7 @@ public class BatteryMeterView extends LinearLayout implements
        @Override
        public void onChange(boolean selfChange, Uri uri) {
            super.onChange(selfChange, uri);

            updateShowPercent();
            if (TextUtils.equals(uri.getLastPathSegment(),
                    Settings.Global.BATTERY_ESTIMATES_LAST_UPDATE_TIME)) {