[Tizen] Showing window after adaptor is initialized 34/254934/4 accepted/tizen/6.0/unified/20210312.104416 submit/tizen_6.0/20210311.071546 submit/tizen_6.0/20210312.021659
authorhuiyu.eun <huiyu.eun@samsung.com>
Thu, 11 Mar 2021 00:29:28 +0000 (09:29 +0900)
committerhuiyu.eun <huiyu.eun@samsung.com>
Thu, 11 Mar 2021 00:37:39 +0000 (09:37 +0900)
The Preinitialization creates a window in advance.
If you call the 'Show' before creating the adaptor, the application cannot know the app resource id.
The show must be called after the adaptor is initialized.

Change-Id: I37f81df09642ab19d1f04995236b01f6e5d225c4
Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
dali/internal/window-system/common/window-impl.cpp

index 1031461..11f89c9 100755 (executable)
@@ -133,8 +133,6 @@ void Window::Initialize(Any surface, const PositionSize& positionSize, const std
 
   SetClass( name, className );
 
-  mWindowSurface->Map();
-
   mOrientation = Orientation::New( this );
 
   // Get OrientationMode
@@ -156,6 +154,10 @@ void Window::OnAdaptorSet(Dali::Adaptor& adaptor)
 {
   mEventHandler = EventHandlerPtr(new EventHandler( mWindowSurface->GetWindowBase(), *mAdaptor ) );
   mEventHandler->AddObserver( *this );
+
+  // If you call the 'Show' before creating the adaptor, the application cannot know the app resource id.
+  // The show must be called after the adaptor is initialized.
+  Show();
 }
 
 void Window::OnSurfaceSet( Dali::RenderSurfaceInterface* surface )