[Tizen] Temporarily modified so that window is no null
authorSunghyun Kim <scholb.kim@samsung.com>
Tue, 7 Apr 2020 01:11:33 +0000 (10:11 +0900)
committerSunghyun Kim <scholb.kim@samsung.com>
Tue, 7 Apr 2020 01:11:33 +0000 (10:11 +0900)
This reverts commit dc58f53f2a2344b134a097b2fc3c5629dcd92566.

Change-Id: Ic843cb912a758f8a6cc09a89443b058143d2601d

dali/internal/system/tizen-wayland/widget-application-impl-tizen.cpp

index ff22534..2b4b480 100644 (file)
@@ -55,9 +55,9 @@ int OnInstanceInit(widget_base_instance_h instanceHandle, bundle *content, int w
   }
   else
   {
-    window = Dali::Window::New(PositionSize(0,0,w,h) ,"", false);
-    if( window )
+    if(Internal::Adaptor::Adaptor::GetImplementation(application->GetAdaptor()).IsMultipleWindowSupported())
     {
+      window = Dali::Window::New(PositionSize(0,0,w,h) ,"", false);
       DALI_LOG_RELEASE_INFO("Widget Instance create new Window  (win:%p, cnt:%d) (%dx%d) (id:%s )\n", window, application->GetWidgetCount(), w, h, std::string(id).c_str());
     }
     else