Skip to content

Commit

Permalink
Notification light: Add an overlay for RGB led [2/2]
Browse files Browse the repository at this point in the history
Add this

    <!-- Multicolor Led Support -->
    <bool name="config_multicolorled">false</bool>

in your device tree

overlay/frameworks/base/core/res/res/values/config.xml

to remove colorpicker from notification settings

Change-Id: I9136919267dd815b958cb63766f4e90911d7cdba
  • Loading branch information
dmd79 authored and dinosnore1 committed Mar 19, 2020
1 parent ad575ac commit ad58b21
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/res/res/values/bootleg_config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@
Used to decide if the user can change the colors -->
<bool name="config_multiColorBatteryLed">true</bool>

<!-- Does the notification LED support multiple colors?
Used to decide if the user can change the colors -->
<bool name="config_multicolorled">true</bool>

<!-- Do the battery/notification LEDs support pulsing?
Used to decide if we show pulse settings -->
<bool name="config_ledCanPulse">true</bool>
Expand Down
3 changes: 3 additions & 0 deletions core/res/res/values/bootleg_symbols.xml
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,7 @@
<java-symbol type="bool" name="config_intrusiveBatteryLed" />
<java-symbol type="bool" name="config_multiColorBatteryLed" />
<java-symbol type="bool" name="config_ledCanPulse" />

<!-- Custom notification light -->
<java-symbol type="bool" name="config_multicolorled" />
</resources>

0 comments on commit ad58b21

Please sign in to comment.