mirror of
https://github.com/team-infusion-developers/android_hardware_samsung.git
synced 2024-10-31 23:37:35 +00:00
liblights: Fix touch key lights coming on when screen brightness is adjusted
Only tested on GT-I9100 Change-Id: I2be3c5ce74799bea310a65bc75dd90985b9d17d6
This commit is contained in:
parent
7bfa58c376
commit
e54debb12e
1 changed files with 5 additions and 3 deletions
|
@ -148,12 +148,14 @@ set_light_buttons(struct light_device_t* dev,
|
|||
#ifdef EXYNOS4210_TABLET
|
||||
return 0;
|
||||
#else
|
||||
|
||||
load_settings();
|
||||
|
||||
int err = 0;
|
||||
int on = is_lit(state);
|
||||
|
||||
pthread_mutex_lock(&g_lock);
|
||||
LOGD("set_light_button on=%d\n", on ? 1 : 0);
|
||||
err = write_int(BUTTON_FILE, on ? 1:0);
|
||||
LOGD("set_light_button on=%d\n", g_enable_touchlight ? 1 : 0);
|
||||
err = write_int(BUTTON_FILE, g_enable_touchlight ? 1 : 0);
|
||||
pthread_mutex_unlock(&g_lock);
|
||||
|
||||
return err;
|
||||
|
|
Loading…
Reference in a new issue