efl_ui_image: fix backward compatibility issue

Summary:
Previously, "anim" property was saved before checking
evas-image's "animated" stated. This patch just corrects
the issue.

Reviewers: zmike, bu5hm4n, segfaultxavi

Reviewed By: zmike

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D10293
This commit is contained in:
WooHyun Jung 2019-10-07 09:38:14 -04:00 committed by Mike Blumenkrantz
parent b0ac1ec85f
commit 5a684e0855
1 changed files with 3 additions and 0 deletions

View File

@ -1749,6 +1749,9 @@ _efl_ui_image_animated_set_internal(Eo *obj, Efl_Ui_Image_Data *sd, Eina_Bool an
return EINA_TRUE;
}
sd->img = elm_image_object_get(obj);
if (elm_widget_is_legacy(obj)) sd->anim = anim; //legacy
if (!evas_object_image_animated_get(sd->img)) return EINA_FALSE;
sd->anim = anim;