Reset timer for coalescable message on bridge down 72/310272/1
authorYoungsun Suh <youngsun.suh@samsung.com>
Thu, 25 Apr 2024 01:16:59 +0000 (10:16 +0900)
committerYoungsun Suh <youngsun.suh@samsung.com>
Thu, 25 Apr 2024 01:16:59 +0000 (10:16 +0900)
Change-Id: Ib77e5fa64e8a68036ea87a31f96a0418bd19035c

dali/internal/accessibility/bridge/bridge-base.cpp
dali/internal/accessibility/bridge/bridge-object.cpp

index a819f25..30e6cf4 100644 (file)
@@ -174,6 +174,8 @@ BridgeBase::ForceUpResult BridgeBase::ForceUp()
 void BridgeBase::ForceDown()
 {
   Bridge::ForceDown();
+  tickTimer.Reset();
+  mCoalescableMessages.clear();
   mRegistry      = {};
   mDbusServer    = {};
   mConnectionPtr = {};
index 512bf93..3889352 100644 (file)
@@ -242,6 +242,11 @@ void BridgeObject::EmitBoundsChanged(Accessible* obj, Dali::Rect<> rect)
 
 void BridgeObject::EmitPostRender(Accessible *obj)
 {
+  if(!IsUp() || obj->IsHidden())
+  {
+    return;
+  }
+
   AddCoalescableMessage(CoalescableMessages::POST_RENDER, obj, 0.5f, [=]() {
     Emit(obj, WindowEvent::POST_RENDER);
   });