Resolve NativeTCT crash issue 01/264901/1 accepted/tizen_6.5_unified tizen_6.5 accepted/tizen/6.0/unified/20211029.040305 accepted/tizen/6.5/unified/20211029.053608 accepted/tizen/unified/20211005.061431 submit/tizen/20211004.134517 submit/tizen_6.5/20211028.164001 submit/tizen_6.5/20211029.140001 tizen_6.5.m2_release
authorAmritanshu <a.pandia1@samsung.com>
Mon, 4 Oct 2021 13:21:20 +0000 (18:51 +0530)
committerAmritanshu <a.pandia1@samsung.com>
Mon, 4 Oct 2021 13:21:20 +0000 (18:51 +0530)
Change-Id: Ib447511ab311709490b8bc9a6ebcb7414933e3cd
Signed-off-by: Amritanshu <a.pandia1@samsung.com>
src/gesture.c

index 26c8792306a984e0b73d847639e568a5626c4131..ea81c25bb5dcb15d5375eefcdce90d783d135ff3 100755 (executable)
@@ -47,7 +47,6 @@ 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)
 {
@@ -223,10 +222,8 @@ 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) { /*This condition is always true, so setting the duration once*/
-       if (!duration_setflag) {
+       if (duration > 0) {
                _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 {