libaurum: Set role name as type for object that don't have type 12/272312/1
authorWoochanlee <wc0917.lee@samsung.com>
Mon, 14 Mar 2022 10:40:20 +0000 (19:40 +0900)
committerWoochanlee <wc0917.lee@samsung.com>
Mon, 14 Mar 2022 10:40:20 +0000 (19:40 +0900)
This patch for EFL app list item doesn't have type.

Change-Id: I42f1fa0c9c8628df60eeae352b65bcef8b099e3e

libaurum/src/Impl/Accessibility/AtspiAccessibleNode.cc

index 95c4506..fdf9c99 100644 (file)
@@ -172,6 +172,10 @@ void AtspiAccessibleNode::updateAttributes()
         char *a = (char*)g_hash_table_lookup(attributes, "automationId");
 
         if (t) mType =  std::string(t);
+        else {
+            if (mRole.empty())updateRoleName();
+            mType = mRole;
+        }
         if (s) mStyle = std::string(s);
         if (a) mAutomationId = std::string(a);
 
@@ -283,6 +287,7 @@ void AtspiAccessibleNode::refresh()
             char *a = (char*)g_hash_table_lookup(attributes, "automationId");
 
             if (t) mType =  std::string(t);
+            else mType = mRole;
             if (s) mStyle = std::string(s);
             if (a) mAutomationId = std::string(a);