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

Commit ad84082e authored by Pawit Pornkitprasan's avatar Pawit Pornkitprasan Committed by Gerrit Code Review
Browse files

SystemUI: status bar brightness: store value as int

Non-automatic brightness value is stored as int, not float.

Symptom: adjust the brightness in the status bar, the brightness
         slider in the notification bar will always be set to full

Change-Id: I5f9a6e97bae2c44c3aff7c9222186a6dbda5d902
parent 6d457b9b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2787,7 +2787,7 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
                    AsyncTask.execute(new Runnable() {
                        @Override
                        public void run() {
                            Settings.System.putFloatForUser(mContext.getContentResolver(),
                            Settings.System.putIntForUser(mContext.getContentResolver(),
                                    Settings.System.SCREEN_BRIGHTNESS, val,
                                    UserHandle.USER_CURRENT);
                        }