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

Unverified Commit e4cb36dc authored by Michael Bestas's avatar Michael Bestas Committed by Michael Bestas
Browse files

Make battery info configurable and enable it by default

Change-Id: If38db229e420e9f7c0ac26abb42a2a309b2f87c2
parent d8aee118
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -26,6 +26,9 @@
        <item>com.android.localtransport/.LocalTransport</item>
    </string-array>

    <!-- Show battery information -->
    <bool name="config_show_battery_info" translatable="false">true</bool>

    <!-- Whether to show peak refresh rate in display settings -->
    <bool name="config_show_peak_refresh_rate_switch">false</bool>

+2 −1
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@ import android.content.Context;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.android.settings.R;
import com.android.settings.fuelgauge.batterytip.BatteryTipPolicy;
import com.android.settings.fuelgauge.batterytip.detectors.LowBatteryDetector;
import com.android.settings.fuelgauge.batterytip.tips.BatteryTip;
@@ -42,7 +43,7 @@ public class BatterySettingsFeatureProviderImpl implements BatterySettingsFeatur

    @Override
    public boolean isBatteryInfoEnabled(Context context) {
        return false;
        return context.getResources().getBoolean(R.bool.config_show_battery_info);
    }

    @Override