Fix the bug of ReloadWidget() 68/245668/1 submit/tizen/20201021.054423
authorSunghyun Kim <scholb.kim@samsung.com>
Wed, 14 Oct 2020 05:05:15 +0000 (14:05 +0900)
committerSunghyun Kim <scholb.kim@samsung.com>
Wed, 14 Oct 2020 05:05:15 +0000 (14:05 +0900)
ReloadWidget() has problem when Widget is terminated abnormally
if it is terminated abnormally, the Renderers are deleted, and touch event does not work properly because of this.
To avoid this problem, i changed ReloadWidget().

Change-Id: I3f5c815bf4596730d8b51dc8a1550edb6f1cc34d

widget_viewer_dali/internal/widget_view/widget_view_impl.cpp

index 4a8ac48e5c96feb5d1cafa0323ad356d27573ccf..74bf1a62789db38f94ee3b2daeb1ba5119a8cf7d 100644 (file)
@@ -702,7 +702,6 @@ void WidgetView::SendWidgetEvent( int event )
       if( mReloadFlag == false )
       {
         CloseRemoteSurface();
-        RemoveWidgetRenderer();
       }
       break;
     }
@@ -1716,12 +1715,6 @@ void WidgetView::UpdateBuffer( struct tizen_remote_surface *surface, struct wl_b
 
 void WidgetView::ReloadWidget()
 {
-  // Only try to reload widget when flag is set
-  if( !mReloadFlag )
-  {
-    return;
-  }
-
   std::string text;
   text = GetContentInfo();
   if( text == mContentInfo )