mirror of
https://github.com/Evolution-X-Devices/device_google_wahoo
synced 2026-01-29 02:44:24 +00:00
Remove default VR brightness implementation in lights.c
There already exists adjustable, default values in the java layer for this stuff so we will leverage that instead. Test: Ensure that going into VR mode still sets the value to correct default. Bug: 73090564 Change-Id: Id9929f074219fee74f93def5227e92ea9b6f55a0
This commit is contained in:
@@ -39,8 +39,6 @@
|
||||
#define LIGHTS_SUPPORT_BATTERY 0
|
||||
#define CG_COLOR_ID_PROPERTY "ro.boot.hardware.color"
|
||||
|
||||
#define LP_MODE_BRIGHTNESS_PROPERTY "sys.display.low_persistence_mode_brightness"
|
||||
|
||||
static pthread_once_t g_init = PTHREAD_ONCE_INIT;
|
||||
static pthread_mutex_t g_lock = PTHREAD_MUTEX_INITIALIZER;
|
||||
static struct light_state_t g_notification;
|
||||
@@ -196,12 +194,6 @@ set_light_backlight(struct light_device_t* dev,
|
||||
ALOGE("%s: Failed to write to %s: %s\n", __FUNCTION__, PERSISTENCE_FILE,
|
||||
strerror(errno));
|
||||
}
|
||||
if (lpEnabled != 0) {
|
||||
// Try to get the brigntess though property, otherwise it will
|
||||
// set the default brightness, which is defined in BoardConfig.mk.
|
||||
brightness = property_get_int32(LP_MODE_BRIGHTNESS_PROPERTY,
|
||||
DEFAULT_LOW_PERSISTENCE_MODE_BRIGHTNESS);
|
||||
}
|
||||
}
|
||||
|
||||
g_last_backlight_mode = state->brightnessMode;
|
||||
|
||||
Reference in New Issue
Block a user