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

Commit d4df6022 authored by Danny Baumann's avatar Danny Baumann Committed by Gerrit Code Review
Browse files

Merge "Fix removal of backlight settings" into cm-10.2

parents 24b922de 27b95cfa
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -238,11 +238,11 @@ public class ButtonSettings extends SettingsPreferenceFragment implements

        if (ButtonBacklightBrightness.isSupported() || KeyboardBacklightBrightness.isSupported()) {
            if (!ButtonBacklightBrightness.isSupported()) {
                removePreference(KEY_BUTTON_BACKLIGHT);
                backlightCategory.removePreference(findPreference(KEY_BUTTON_BACKLIGHT));
            }

            if (!KeyboardBacklightBrightness.isSupported()) {
                removePreference(KEY_KEYBOARD_BACKLIGHT);
                backlightCategory.removePreference(findPreference(KEY_KEYBOARD_BACKLIGHT));
            }
        } else {
            prefScreen.removePreference(backlightCategory);