From 10e88e9c80f88b096ef7e543ab94a7aa5868bf07 Mon Sep 17 00:00:00 2001 From: "huiyu.eun" Date: Thu, 11 Mar 2021 09:29:28 +0900 Subject: [PATCH] [Tizen] Showing window after adaptor is initialized 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 --- dali/internal/window-system/common/window-impl.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dali/internal/window-system/common/window-impl.cpp b/dali/internal/window-system/common/window-impl.cpp index 1031461..11f89c9 100755 --- a/dali/internal/window-system/common/window-impl.cpp +++ b/dali/internal/window-system/common/window-impl.cpp @@ -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 ) -- 2.7.4