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

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

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

This reverts commit 8815ce08.

Change-Id: Ib86cbb5540b77d110313348c36701251e3032347
parent 5caca436
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -541,11 +541,13 @@ public class ButtonSettings extends SettingsPreferenceFragment implements
            Settings.System.putInt(context.getContentResolver(),
                    Settings.System.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.System.putInt(context.getContentResolver(),
                        Settings.System.BUTTON_BRIGHTNESS, oldBright);
                editor.remove("pre_navbar_button_backlight");
            }
        }
        editor.commit();
    }