Do not reload the widget automatically during widget creation. 74/292074/1 accepted/tizen/8.0/unified/20231005.094340 accepted/tizen/unified/20230504.054938 accepted/tizen/unified/20230616.172442 accepted/tizen/unified/20230623.160649 accepted/tizen/unified/20230726.163520 accepted/tizen/unified/20230803.034129 accepted/tizen/unified/20230810.070131 accepted/tizen/unified/20230818.054538 accepted/tizen/unified/20230906.121336 accepted/tizen/unified/20230912.171616 accepted/tizen/unified/20230915.085415 accepted/tizen/unified/riscv/20231127.101453 tizen_8.0_m2_release
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:41:29 +0000 (13:41 +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 )