Do not reload the widget automatically during widget creation. 75/292075/1 accepted/tizen/7.0/unified/20230517.151757 accepted/tizen/7.0/unified/20230608.164745 accepted/tizen/7.0/unified/20230615.051500 accepted/tizen/7.0/unified/20230615.061150 accepted/tizen/7.0/unified/20230719.171809 accepted/tizen/7.0/unified/20231024.025358 accepted/tizen/7.0/unified/20231026.165734 accepted/tizen/7.0/unified/20231116.025856 accepted/tizen/7.0/unified/20231122.100652 accepted/tizen/7.0/unified/20231130.102014 accepted/tizen/7.0/unified/20231207.071839
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:42:15 +0000 (13:42 +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 249a9348b2f5a51a67a78a19eb4b0262d06c95c4..1f25c618056b58597e3a546307ec325656da6b20 100644 (file)
@@ -1759,6 +1759,12 @@ bool WidgetView::LaunchWidget()
 
 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 )