_E("Attach panel is already removed");
return ATTACH_PANEL_ERROR_ALREADY_DESTROYED;
}
-
+ evas_object_size_hint_min_set(attach_panel->attach_panel_rect, 0, 0);
_gesture_hide(attach_panel, true);
return ATTACH_PANEL_ERROR_NONE;
} custom_effect_s;
static int transit_del_cb_setflag = 0;
+static int duration_setflag = 0;
attach_panel_state_e _gesture_get_state(void)
{
elm_transit_tween_mode_set(gesture_info_s.transit, ELM_TRANSIT_TWEEN_MODE_DECELERATE);
elm_transit_smooth_set(gesture_info_s.transit, EINA_FALSE);
elm_transit_effect_add(gesture_info_s.transit, __custom_effect_op, custom_effect, __custom_effect_free);
- if (duration > 0) {
+ // if (duration > 0) { /*This condition is always true, so setting the duration once*/
+ if (!duration_setflag) {
+ _D("transit duration is set");
+ duration_setflag = 1;
elm_transit_duration_set(gesture_info_s.transit, duration);
elm_transit_go(gesture_info_s.transit);
} else {
+ _D("transit is deleted");
__custom_effect_op(custom_effect, gesture_info_s.transit, 1.0);
elm_transit_del(gesture_info_s.transit);
}