efl_ui_animation_view: Set PLAY state before call "start" callback.

Summary:
In transit_cb state set PLAY.
But before that "Start" callback is called.
So the state in the callback function is STOP or another state.

Test Plan: N/A

Reviewers: Hermet, kimcinoo

Reviewed By: kimcinoo

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D8801
This commit is contained in:
junsu choi 2019-05-02 15:43:08 +09:00 committed by Shinwoo Kim
parent 51c7a0ab49
commit ad040eec2e
1 changed files with 4 additions and 0 deletions

View File

@ -66,6 +66,10 @@ static void
_transit_go_facade(Efl_Ui_Animation_View_Data *pd)
{
pd->repeat_times = 0;
if (pd->play_back)
pd->state = EFL_UI_ANIMATION_VIEW_STATE_PLAY_BACK;
else
pd->state = EFL_UI_ANIMATION_VIEW_STATE_PLAY;
evas_object_smart_callback_call(pd->obj, SIG_PLAY_START, NULL);
elm_transit_go(pd->transit);
}