From: Youngsun Suh Date: Thu, 25 Apr 2024 01:16:59 +0000 (+0900) Subject: Reset timer for coalescable message on bridge down X-Git-Tag: dali_2.3.22~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F72%2F310272%2F1;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git Reset timer for coalescable message on bridge down Change-Id: Ib77e5fa64e8a68036ea87a31f96a0418bd19035c --- diff --git a/dali/internal/accessibility/bridge/bridge-base.cpp b/dali/internal/accessibility/bridge/bridge-base.cpp index a819f25..30e6cf4 100644 --- a/dali/internal/accessibility/bridge/bridge-base.cpp +++ b/dali/internal/accessibility/bridge/bridge-base.cpp @@ -174,6 +174,8 @@ BridgeBase::ForceUpResult BridgeBase::ForceUp() void BridgeBase::ForceDown() { Bridge::ForceDown(); + tickTimer.Reset(); + mCoalescableMessages.clear(); mRegistry = {}; mDbusServer = {}; mConnectionPtr = {}; diff --git a/dali/internal/accessibility/bridge/bridge-object.cpp b/dali/internal/accessibility/bridge/bridge-object.cpp index 512bf93..3889352 100644 --- a/dali/internal/accessibility/bridge/bridge-object.cpp +++ b/dali/internal/accessibility/bridge/bridge-object.cpp @@ -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); });