Note that we should allow to get the window list even of adaptor is stopped.
That API could be called at OnTerminate cases
Change-Id: I8e009aa9f1655ef68b6dfae0a66de0259f5e7bef
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
/*
- * Copyright (c) 2023 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2024 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.
{
try
{
- if(mProcessRegistered)
+ if(mProcessRegistered && Dali::Adaptor::IsAvailable())
{
Dali::Adaptor::Get().UnregisterProcessor(*this);
Dali::Adaptor::Get().UnregisterProcessor(*this, true);
/*
- * Copyright (c) 2022 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2024 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.
{
try
{
+ // Note : We should not check Dali::Adaptor::IsAvailable() here. Since this API could be called at OnTerminate time.
result = Dali::Adaptor::Get().GetWindows();
jresult = result.size();
}
{
try
{
+ // Note : We should not check Dali::Adaptor::IsAvailable() here. Since this API could be called at OnTerminate time.
result = Dali::Adaptor::Get().GetWindows();
}
CALL_CATCH_EXCEPTION(0);
/*
- * Copyright (c) 2023 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2024 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.
}
{
try {
- Dali::Adaptor::Get().FeedKeyEvent(*keyEvent);
+ if(Dali::Adaptor::IsAvailable())
+ {
+ Dali::Adaptor::Get().FeedKeyEvent(*keyEvent);
+ }
} CALL_CATCH_EXCEPTION();
}
}
SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Adaptor_RenderOnce(void * /* jarg1 */) {
try {
- Dali::Adaptor::Get().RenderOnce();
+ if(Dali::Adaptor::IsAvailable())
+ {
+ Dali::Adaptor::Get().RenderOnce();
+ }
} CALL_CATCH_EXCEPTION();
}