From 691ffe0541f037afbaa1e60144972835a65d98cd Mon Sep 17 00:00:00 2001 From: Subhransu Mohanty Date: Wed, 9 Sep 2015 17:41:03 +0900 Subject: [PATCH] tizen/vector: disable size animation in onoff checkbox during off transition. Change-Id: Id3fb688e38014f4498a298d30426aba1d172f61c --- src/lib/tizen_vector.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/lib/tizen_vector.c b/src/lib/tizen_vector.c index 96c0016..b6458c4 100644 --- a/src/lib/tizen_vector.c +++ b/src/lib/tizen_vector.c @@ -628,24 +628,24 @@ check_onoff_action_toggle_cb(void *data, Evas_Object *obj EINA_UNUSED, { elm_transit_duration_set(vd->transit[1], 0.25); elm_transit_go_in(vd->transit[1], 0.05); + + //Overlap Circle Sizing Effect + elm_transit_del(vd->transit[2]); + vd->transit[2] = elm_transit_add(); + elm_transit_effect_add(vd->transit[2], transit_check_onoff_sizing_op, vd, + _transit_check_onoff_animation_finished); + elm_transit_del_cb_set(vd->transit[2], transit_check_onoff_sizing_del_cb, + vd); + elm_transit_tween_mode_set(vd->transit[2], + ELM_TRANSIT_TWEEN_MODE_DECELERATE); + elm_transit_duration_set(vd->transit[2], 0.3); + elm_transit_go(vd->transit[2]); } else { elm_transit_duration_set(vd->transit[1], 0.1); elm_transit_go(vd->transit[1]); } - - //Overlap Circle Sizing Effect - elm_transit_del(vd->transit[2]); - vd->transit[2] = elm_transit_add(); - elm_transit_effect_add(vd->transit[2], transit_check_onoff_sizing_op, vd, - _transit_check_onoff_animation_finished); - elm_transit_del_cb_set(vd->transit[2], transit_check_onoff_sizing_del_cb, - vd); - elm_transit_tween_mode_set(vd->transit[2], - ELM_TRANSIT_TWEEN_MODE_DECELERATE); - elm_transit_duration_set(vd->transit[2], 0.3); - elm_transit_go(vd->transit[2]); } static void -- 2.7.4