[Fix] Issue SAD-703 Media volume slider
authorRadek Kintop <r.kintop@samsung.com>
Thu, 17 Oct 2019 15:20:58 +0000 (17:20 +0200)
committerKrzysztof Wieclaw <k.wieclaw@samsung.com>
Fri, 18 Oct 2019 12:16:51 +0000 (14:16 +0200)
setting-profile/src/setting-profile-common.c

index 2ac758caba06d3f9476c907b4e113567f3ebf90c..d62487b2091435bffd5c1300f89c253fefb4bb4b 100755 (executable)
@@ -660,26 +660,6 @@ static Evas_Object *__sound_slider_icon_get(void *data, Evas_Object *obj,
        evas_object_size_hint_weight_set(layout, EVAS_HINT_EXPAND,
                        EVAS_HINT_EXPAND);
 
-       if (0 == safeStrCmp(item_data->keyStr, "IDS_ST_BODY_MEDIA")) {
-               elm_object_style_set(slider, "warning");
-
-               Edje_Message_Float_Set *msg =
-                               alloca(sizeof(Edje_Message_Float_Set)
-                                               + (sizeof(double)));
-               msg->count = 1;
-               /* Warning area point has to be calculated considering rounding
-                * off. For example, value 10's area will be 9.5~10.4.
-                * So, if warning area has to be started at 10, we need to
-                * calculate the start point with 9.5.
-                * Warning start point = (Warning min value - 0.5) /
-                *                              (Max_Value - Min_Value) */
-               msg->val[0] = 0.633333;
-               edje_object_message_send(
-                               elm_layout_edje_get(slider), EDJE_MESSAGE_FLOAT_SET, 0, msg);
-               elm_slider_indicator_format_set(slider, "%1.0f");
-               elm_slider_indicator_show_set(slider, 1);
-       }
-
        item_data->eo_check = slider;
 
        evas_object_pass_events_set(slider, EINA_TRUE);