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

Commit df810ae3 authored by Paul Keith's avatar Paul Keith Committed by Sam Mortimer
Browse files

LineageParts: Allow brightness control for segmented LEDs

* The sdk now supports control of non-RGB segmented battery lights,
  and RGB ones already could support it via scaling RGB values

Change-Id: I834134e82a86d396e77b4eca752559c554609776
parent b0368b05
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -149,7 +149,7 @@ public class BatteryLightSettings extends SettingsPreferenceFragment implements
        }

        // Remove battery LED brightness controls if we can't support them.
        if (segmentedBatteryLed || (!mMultiColorLed && !mHALAdjustableBrightness)) {
        if (!mMultiColorLed && !mHALAdjustableBrightness) {
            prefSet.removePreference(prefSet.findPreference(BRIGHTNESS_SECTION));
        }