[TSDF-1542]Resolve Csharp TCT attach-panel defect 30/257930/2 accepted/tizen/unified/20210509.123846 submit/tizen/20210507.095745
authorAmritanshu <a.pandia1@samsung.com>
Thu, 6 May 2021 14:20:47 +0000 (19:50 +0530)
committerAmritanshu <a.pandia1@samsung.com>
Fri, 7 May 2021 09:40:12 +0000 (15:10 +0530)
Change-Id: Ie20ef8a8fd56fe659d29b63aca4f8249b818f2f6
Signed-off-by: Amritanshu <a.pandia1@samsung.com>
src/attach_panel.c
src/gesture.c

index 940eeafbea5545ea7dc593a8ff5e67e8ee2449ac..9f3753cade31f213f53a1d22311b5147af7d04af 100755 (executable)
@@ -884,7 +884,7 @@ EXPORT_API int attach_panel_hide(attach_panel_h attach_panel)
                _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;
index 794da9787d51efa98bd7ca3677e9db4a155eea05..26c8792306a984e0b73d847639e568a5626c4131 100755 (executable)
@@ -47,6 +47,7 @@ typedef struct custom_effect {
 } custom_effect_s;
 
 static int transit_del_cb_setflag = 0;
+static int duration_setflag = 0;
 
 attach_panel_state_e _gesture_get_state(void)
 {
@@ -222,10 +223,14 @@ static void __attach_panel_transit_set(attach_panel_h attach_panel, Evas_Coord f
        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);
        }