/*
- * Copyright (c) 2020 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
{
WidgetApplication WidgetApplication::New(int* argc, char** argv[], const std::string& stylesheet)
{
+ Internal::Adaptor::ApplicationPtr preInitializedApplication = Internal::Adaptor::Application::GetPreInitializedApplication();
+ if(preInitializedApplication)
+ {
+ // WidgetApplication can't use pre-initialized application. So reset it.
+ preInitializedApplication.Reset();
+ }
+
Internal::Adaptor::WidgetApplicationPtr internal = Internal::Adaptor::WidgetApplication::New(argc, argv, stylesheet);
return WidgetApplication(internal.Get());
}