From: Seoyeon Kim Date: Mon, 13 Apr 2020 07:41:05 +0000 (+0900) Subject: Revert "[Tizen] Temporarily modified so that window is no null if multi-window is... X-Git-Tag: accepted/tizen/unified/20200413.222025~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;ds=sidebyside;h=c903b5edb3947f9c1db972436ce613031f8cb1b5;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git Revert "[Tizen] Temporarily modified so that window is no null if multi-window is not supported" This reverts commit 8665f0e7867639372fd3e772d35d2cf68a16aefc. --- diff --git a/dali/public-api/adaptor-framework/window.cpp b/dali/public-api/adaptor-framework/window.cpp index 4741340..9d8c830 100644 --- a/dali/public-api/adaptor-framework/window.cpp +++ b/dali/public-api/adaptor-framework/window.cpp @@ -48,21 +48,24 @@ Window Window::New(PositionSize posSize, const std::string& name, const std::str Dali::Adaptor& adaptor = Internal::Adaptor::Adaptor::Get(); isNewWindowAllowed = Internal::Adaptor::Adaptor::GetImplementation(adaptor).IsMultipleWindowSupported(); } - if (!isNewWindowAllowed) - { - DALI_LOG_ERROR("This device can't support multiple windows.\n"); - } - Internal::Adaptor::Window* window = Internal::Adaptor::Window::New(posSize, name, className, isTransparent); + if (isNewWindowAllowed) + { + Internal::Adaptor::Window* window = Internal::Adaptor::Window::New(posSize, name, className, isTransparent); - Integration::SceneHolder sceneHolder = Integration::SceneHolder(window); + Integration::SceneHolder sceneHolder = Integration::SceneHolder(window); - if (isAdaptorAvailable) + if (isAdaptorAvailable) + { + Dali::Adaptor& adaptor = Internal::Adaptor::Adaptor::Get(); + Internal::Adaptor::Adaptor::GetImplementation(adaptor).AddWindow(sceneHolder, name, className, isTransparent); + } + newWindow = Window(window); + } + else { - Dali::Adaptor& adaptor = Internal::Adaptor::Adaptor::Get(); - Internal::Adaptor::Adaptor::GetImplementation(adaptor).AddWindow(sceneHolder, name, className, isTransparent); + DALI_LOG_ERROR("This device can't support multiple windows.\n"); } - newWindow = Window(window); return newWindow; }