From: sunghyun kim Date: Thu, 27 Apr 2023 04:40:39 +0000 (+0900) Subject: Do not reload the widget automatically during widget creation. X-Git-Tag: accepted/tizen/6.0/unified/20230502.141817^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_6.0;p=platform%2Fcore%2Fuifw%2Fwidget-viewer-dali.git Do not reload the widget automatically during widget creation. before widget creation, the function of reloading the widget doesn't work. in this case, the user needs to reload the widget manually so widgetViewer doesn't perform reload function automatically. Change-Id: Iecda82a60da4ed622bea02f7665c8db7e6c8942c --- diff --git a/widget_viewer_dali/internal/widget_view/widget_view_impl.cpp b/widget_viewer_dali/internal/widget_view/widget_view_impl.cpp index 7172412..aaa8f2e 100644 --- a/widget_viewer_dali/internal/widget_view/widget_view_impl.cpp +++ b/widget_viewer_dali/internal/widget_view/widget_view_impl.cpp @@ -1820,6 +1820,12 @@ void WidgetView::UpdateBuffer( struct tizen_remote_surface *surface, struct wl_b void WidgetView::ReloadWidget() { + if(!mCreated) + { + DALI_LOG_ERROR("Skip Reload, we can't use reload before widget(%s) is created \n", mWidgetId.c_str()); + return; + } + std::string text; text = GetContentInfo(); if( text == mContentInfo )