elc_popup: do not allow theme apply while constructing for performance
authorTaehyub Kim <taehyub.kim@samsung.com>
Thu, 14 May 2020 05:29:59 +0000 (14:29 +0900)
committerJongmin Lee <jm105.lee@samsung.com>
Thu, 14 May 2020 22:15:19 +0000 (07:15 +0900)
Change-Id: I4df71eade988fd98159ea902124ece7466e57ce5

src/lib/elementary/elc_popup.c

index 1a85a37..45123bf 100644 (file)
@@ -592,6 +592,10 @@ _populate_theme_scroll(Elm_Popup_Data *sd)
 EOLIAN static Eina_Error
 _elm_popup_efl_ui_widget_theme_apply(Eo *obj, Elm_Popup_Data *sd)
 {
+   //TIZEN_ONLY(20200514): do not allow theme apply while constructing popup
+   if (!efl_finalized_get(obj)) return EFL_UI_THEME_APPLY_ERROR_NONE;
+   //
+
    Elm_Popup_Item_Data *it;
    Eina_List *elist;
    char buf[1024], style[1024];