Fix set brightness defect.
authorHokwon Song <hokwon.song@samsung.com>
Mon, 16 Sep 2013 05:09:36 +0000 (14:09 +0900)
committerHokwon Song <hokwon.song@samsung.com>
Mon, 16 Sep 2013 05:11:04 +0000 (14:11 +0900)
Change-Id: I34805e3f90a7fbb844466405153f85119567da5d
Signed-off-by: Hokwon Song <hokwon.song@samsung.com>
src/system-server/setting/providers/FSys_SettingScreenProvider.cpp

index e1c81a4..b64e1bf 100644 (file)
@@ -271,7 +271,7 @@ _SettingScreenProvider::SetValue(const String& key, const int value)
                errorCode = vconf_set_int(VCONFKEY_SETAPPL_LCD_BRIGHTNESS, value);
                SysTryReturnResult(NID_SYS, errorCode == 0, E_SYSTEM, "It is failed to set on VCONFKEY_SETAPPL_LCD_BRIGHTNESS vconf");
 
-               errorCode = device_set_brightness_from_settings(0);
+               errorCode = device_set_brightness_to_settings(0, value);
                if(errorCode != 0)
                {
                        SysLog(NID_SYS, "It is failed to update screen brightness.");