efl_ui_stack: fix not to keep final state of push/pop animations 12/206812/2
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Mon, 27 May 2019 10:32:01 +0000 (19:32 +0900)
committerHermet Park <chuneon.park@samsung.com>
Thu, 30 May 2019 01:56:41 +0000 (01:56 +0000)
It is just required to show pushed content and hide popped content after
the push/pop animations.
Therefore, it is not required to keep the final state of the push/pop
animations after finishing the push/pop animations.

Change-Id: I4a318a6607a545b51f6bb2a146bcb080acb49461

src/lib/elementary/efl_ui_stack.c

index c330fad..92241ac 100644 (file)
@@ -675,7 +675,6 @@ _efl_ui_stack_efl_object_constructor(Eo *obj, Efl_Ui_Stack_Data *pd EINA_UNUSED)
    sh = show_anim = efl_add(EFL_CANVAS_ANIMATION_ALPHA_CLASS, obj);
    efl_animation_alpha_set(show_anim, 0.0, 1.0);
    efl_animation_duration_set(show_anim, 0.5);
-   efl_animation_final_state_keep_set(show_anim, EINA_TRUE);
 
    pd->show = efl_add(EFL_CANVAS_ANIMATION_PLAYER_CLASS, obj);
    efl_animation_player_animation_set(pd->show, sh);
@@ -686,7 +685,6 @@ _efl_ui_stack_efl_object_constructor(Eo *obj, Efl_Ui_Stack_Data *pd EINA_UNUSED)
    hi = hide_anim = efl_add(EFL_CANVAS_ANIMATION_ALPHA_CLASS, obj);
    efl_animation_alpha_set(hide_anim, 1.0, 0.0);
    efl_animation_duration_set(hide_anim, 0.5);
-   efl_animation_final_state_keep_set(hide_anim, EINA_TRUE);
 
    pd->hide = efl_add(EFL_CANVAS_ANIMATION_PLAYER_CLASS, obj);
    efl_animation_player_animation_set(pd->hide, hi);