Do not reload the widget automatically during widget creation. 77/292077/1 accepted/tizen_6.5_unified tizen_6.5 accepted/tizen/6.5/unified/20230517.090740
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:48 +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 c174d8a9bde98696c332844b22042258da82c6bc..26a16a81a510b62e0889f65ee336a36c44517762 100644 (file)
@@ -1721,6 +1721,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 )