N_SE-8235
authorKairong Yin <kairong78.yin@samsung.com>
Sat, 8 Sep 2012 09:11:02 +0000 (02:11 -0700)
committerKairong Yin <kairong78.yin@samsung.com>
Mon, 10 Sep 2012 09:04:02 +0000 (02:04 -0700)
Change-Id: I669eecac8d44acf0d6da35075a5d70b5d06c783e

setting-display/src/setting-display-brightness.c

index 0d7353da5fd1e39f0b79602eb48d74b13440b5db..83401f376bc9ebea12877f79dd6f0aed55eef0e1 100755 (executable)
@@ -196,17 +196,12 @@ static int setting_display_brightness_create(void *cb)
        }
 
        // get initial value from vconf
-#if DISABLED_CODE
+       int value = SETTING_BRIGHTNESS_LEVEL7;
        int ret = setting_get_int_slp_key(INT_SLP_SETTING_LCD_BRIGHTNESS, &value, &err);
        if (ret == SETTING_RETURN_FAIL) {
                value = SETTING_BRIGHTNESS_LEVEL5;
                SETTING_TRACE("******* value = %d ", value);
        }
-#else
-       int value = SETTING_BRIGHTNESS_LEVEL7;
-       device_get_brightness(BRIGHTNESS_DISPLAY, &value);
-       SETTING_TRACE("******* value = %d ", value);
-#endif
 
        // [UI] Slider control for Bightness
        ad->data_br_sli =
@@ -327,7 +322,8 @@ static void __toggle_automatic_chk(void* data, int chk_status)
        } else {
                // TOGGLE OFF
                int value = SETTING_BRIGHTNESS_LEVEL7;
-               device_get_brightness(BRIGHTNESS_DISPLAY, &value);
+               //device_get_brightness(BRIGHTNESS_DISPLAY, &value);
+               value = elm_slider_value_get(ad->data_br_sli->eo_check);
 
                SETTING_TRACE(" SENOSR :: %d ", value);