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

Commit d19418ec authored by Roman Birg's avatar Roman Birg Committed by Gerrit Code Review
Browse files

Revert "Settings: use correct default value for backlight brightness"

not the correct solution

This reverts commit 206af7ae.

Change-Id: Icc18b5edbf850e188080613cee863c94b7cd4356
parent 73edbe79
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -614,11 +614,13 @@ public class ButtonSettings extends SettingsPreferenceFragment implements
            Settings.Secure.putInt(context.getContentResolver(),
                    Settings.Secure.BUTTON_BRIGHTNESS, 0);
        } else {
            int oldBright = prefs.getInt("pre_navbar_button_backlight", defaultBrightness);
            int oldBright = prefs.getInt("pre_navbar_button_backlight", -1);
            if (oldBright != -1) {
                Settings.Secure.putInt(context.getContentResolver(),
                        Settings.Secure.BUTTON_BRIGHTNESS, oldBright);
                editor.remove("pre_navbar_button_backlight");
            }
        }
        editor.commit();
    }