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

Commit bfcd52d3 authored by LuK1337's avatar LuK1337
Browse files

SystemUI: Fix default mShowMediaMetadata value

* On clean installations this would end up being
  initialized to invalid value. Changing this
  into v == null || v != 0 check, fixes this issue.

Change-Id: I64ffc64e3d246c9257f5ed173b4e1eb8eb585bb4
parent 884fa6b7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5793,7 +5793,7 @@ public class StatusBar extends SystemUI implements DemoMode, TunerService.Tunabl
        } else if (STATUS_BAR_BRIGHTNESS_CONTROL.equals(key)) {
            mBrightnessControl = newValue != null && Integer.parseInt(newValue) == 1;
        } else if (LOCKSCREEN_MEDIA_METADATA.equals(key)) {
            mShowMediaMetadata = newValue != null && Integer.parseInt(newValue) == 1;
            mShowMediaMetadata = newValue == null || Integer.parseInt(newValue) != 0;
        } else if (mWindowManagerService != null && FORCE_SHOW_NAVBAR.equals(key)) {
            boolean forcedVisibility = newValue != null && Integer.parseInt(newValue) == 1;