The dim brightness setting feature had been supported before
but it was no longer available after
ce471ec18f19bb184848f4c84e813b834ef4bdee commit.
Although there were descriptions and functions provided for setting dim brightness,
it's not right that it cannot be used, so it is restored.
Change-Id: I6b03d7c12b359a3d24ecd4305f904f97f80decd1
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
int display_backlight_set_brightness_by_dim_brightness(void)
{
int ret = 0;
+ int dim_brightness = 0;
- ret = display_backlight_set_brightness(PM_DIM_BRIGHTNESS);
+ ret = vconf_get_int(VCONFKEY_SETAPPL_LCD_DIM_BRIGHTNESS, &dim_brightness);
+ if (ret < 0) {
+ _E("Failed to get vconf value for VCONFKEY_SETAPPL_LCD_DIM_BRIGHTNESS: %d", vconf_get_ext_errno());
+ return ret;
+ }
+
+ ret = display_backlight_set_brightness(dim_brightness);
#ifdef ENABLE_PM_LOG
enum syscommon_deviced_display_state current;