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

Commit 77e39933 authored by Evan Laird's avatar Evan Laird Committed by android-build-merger
Browse files

Merge "Allow config to disable battery percent setting" into pi-dev

am: 1f6c7910

Change-Id: Ief7df5312104e44bda140f68dd5e6821c2736bbf
parents 626972ba 1f6c7910
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@ import android.provider.Settings;
import android.support.v7.preference.Preference;
import android.support.v14.preference.SwitchPreference;

import com.android.internal.R;
import com.android.settings.core.PreferenceControllerMixin;
import com.android.settingslib.core.AbstractPreferenceController;

@@ -40,7 +41,8 @@ public class BatteryPercentagePreferenceController extends AbstractPreferenceCon

    @Override
    public boolean isAvailable() {
        return true;
        return mContext.getResources()
                .getBoolean(R.bool.config_battery_percentage_setting_available);
    }

    @Override