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 a819f259a9685d59939437002f2ea0fee25795d5..30e6cf4f9f5f8662d6089bf3cb39f6dca2a481da 100644 (file)
@@ -174,6 +174,8 @@ BridgeBase::ForceUpResult BridgeBase::ForceUp()
 void BridgeBase::ForceDown()
 {
   Bridge::ForceDown();
+  tickTimer.Reset();
+  mCoalescableMessages.clear();
   mRegistry      = {};
   mDbusServer    = {};
   mConnectionPtr = {};
index 512bf93661b2a17f12d46f9b1a6209fbbf9ca296..3889352793a7c6b60ce0d03c6ee128dbaff5cdde 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);
   });