Do not reload the widget automatically during widget creation. 76/292076/1 accepted/tizen_6.0_unified tizen_6.0 accepted/tizen/6.0/unified/20230502.141817
authorsunghyun kim <scholb.kim@samsung.com>
Thu, 27 Apr 2023 04:40:39 +0000 (13:40 +0900)
committersunghyun kim <scholb.kim@samsung.com>
Thu, 27 Apr 2023 04:43:28 +0000 (13:43 +0900)
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

widget_viewer_dali/internal/widget_view/widget_view_impl.cpp

index 7172412b343a2c97cfe2ae3d578bcc9d7498e104..aaa8f2ec889ff216b37100e2c0a5ce02e7c48b98 100644 (file)
@@ -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 )