[Tizen] Clear a11y events cache on pause 53/325553/1 accepted/tizen_7.0_unified accepted/tizen/7.0/unified/20250612.122826
authorYoungsun Suh <youngsun.suh@samsung.com>
Thu, 12 Jun 2025 00:01:17 +0000 (09:01 +0900)
committerYoungsun Suh <youngsun.suh@samsung.com>
Thu, 12 Jun 2025 00:01:49 +0000 (09:01 +0900)
Change-Id: Ie46e4e316fa8d7e8c26b3b51affa2d68819e6a6a

dali/devel-api/atspi-interfaces/accessible.h
dali/internal/accessibility/bridge/accessible.cpp
dali/internal/accessibility/bridge/bridge-impl.cpp

index 7804164cef2c3ad2d92adb2d342440fff1ae810b..60f0f31a6c176f632f9fa7548190543a171d9bd9 100644 (file)
@@ -2,7 +2,7 @@
 #define DALI_ADAPTOR_ATSPI_ACCESSIBLE_H
 
 /*
- * Copyright (c) 2024 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2025 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.
@@ -455,6 +455,11 @@ public:
     return mSuppressedEvents;
   }
 
+  /**
+   * @brief Clears internal cache data on bridge down
+   */
+  void ClearCache();
+
 protected:
   Accessible();
   Accessible(const Accessible&)         = delete;
index ed8fc1e90b3495674174d702f8ec5019396448d8..4f5eda37df0d4d1d6f5b7e38cd3a73d43c40d746 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2024 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2025 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.
@@ -277,3 +277,8 @@ void Accessible::NotifyAccessibilityStateChange(Dali::Accessibility::States stat
     }
   }
 }
+
+void Accessible::ClearCache()
+{
+  mLastEmittedState.clear();
+}
\ No newline at end of file
index 6d0b630a32362c82a312d204b01891ca279f534c..94fa589608005503cd6151a4ea8b53b733599836 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2024 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2025 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.
@@ -258,6 +258,11 @@ public:
     mDirectReadingCallbacks.clear();
     mApplication.mChildren.clear();
     ClearTimer();
+
+    for(auto& [key, obj] : mAccessibles)
+    {
+      obj->ClearCache();
+    }
   }
 
   void ClearTimer()