[ATSPI] Hotfix for common profile with ATSPI.IsEnabled() 47/263647/3
authorEunki, Hong <eunkiki.hong@samsung.com>
Tue, 7 Sep 2021 10:01:14 +0000 (19:01 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Tue, 7 Sep 2021 10:40:03 +0000 (19:40 +0900)
There is some issue with ATSPI in Ubuntu platform.
So we build atspi-wrap.cpp in tizen profile only.

But ATSPI::IsEnable(); API could be called for all profile

This patch hotfix this issue.

We move that function to other file.
(= control-devel-wrap.cpp which relation API defined)

Change-Id: I139ba72c5c3ad8ad2be4255c47e770d29675892e
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
dali-csharp-binder/src/atspi-wrap.cpp
dali-csharp-binder/src/control-devel-wrap.cpp

index e1757b1..6b2f353 100755 (executable)
@@ -164,11 +164,6 @@ SWIGEXPORT void SWIGSTDCALL csharp_dali_accessibility_BridgeDisableAutoInit()
   Dali::Accessibility::Bridge::DisableAutoInit();
 }
 
-SWIGEXPORT bool SWIGSTDCALL csharp_dali_accessibility_IsEnabled()
-{
-  return Dali::AtspiAccessibility::IsEnabled();
-}
-
 #ifdef __cplusplus
 }
 #endif
index b8be85c..6e4785b 100644 (file)
@@ -569,6 +569,16 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Accessibility_Accessible_SetHighlightAct
     });
 }
 
+// atspi-wrap.cpp build only tizen profile, but this API could called for common profile.
+// TODO : It may need to moved some other file. Need to checkup
+SWIGEXPORT bool SWIGSTDCALL csharp_dali_accessibility_IsEnabled()
+{
+  // TODO : This file doesn't have Atspi namespace. In this file, It just call IsUp function.
+  //return Dali::AtspiAccessibility::IsEnabled();
+  return Dali::Accessibility::IsUp();
+}
+
+
 #ifdef __cplusplus
 } // extern "C"
 #endif