Skip to content

Commit

Permalink
liblight: add button backlight support
Browse files Browse the repository at this point in the history
Change-Id: I58e20d822ef55a591ef02effbc197e69085197a5
  • Loading branch information
ryzenforce990 authored and Grarak committed Feb 21, 2016
1 parent 3a0619a commit d363df1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion liblight/lights.c
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ static int open_lights(const struct hw_module_t* module, char const* name,
if (0 == strcmp(LIGHT_ID_BACKLIGHT, name))
set_light = set_light_backlight;
else if (0 == strcmp(LIGHT_ID_BUTTONS, name))
set_light = set_light_buttons;
set_light = set_light_buttons;
else if (0 == strcmp(LIGHT_ID_BATTERY, name))
set_light = set_light_battery;
else if (0 == strcmp(LIGHT_ID_NOTIFICATIONS, name))
Expand Down
3 changes: 3 additions & 0 deletions overlay/frameworks/base/core/res/res/values/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@
<!-- Is the battery LED intrusive? Used to decide if there should be a disable option -->
<bool name="config_intrusiveBatteryLed">true</bool>

<!-- Button illumination -->
<bool name="config_deviceHasVariableButtonBrightness">true</bool>

<!-- Vibrator pattern for feedback about a long screen/key press -->
<integer-array name="config_longPressVibePattern">
<item>0</item>
Expand Down

0 comments on commit d363df1

Please sign in to comment.