From 38f0443000763ef238c0a34cb2c0fb0691ea19fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ioan=20Biz=C4=83u?= Date: Tue, 12 Nov 2024 17:10:40 +0100 Subject: [PATCH] fix(core): fix crash caused by marquee request_anim_frame will register a timer for RequestPaint, which will then cause a crash. This commit fixes the crash, but makes the marquee component not work. [no changelog] --- core/embed/rust/src/ui/model_tr/component/title.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/embed/rust/src/ui/model_tr/component/title.rs b/core/embed/rust/src/ui/model_tr/component/title.rs index e79a958442..b8f6f8f21d 100644 --- a/core/embed/rust/src/ui/model_tr/component/title.rs +++ b/core/embed/rust/src/ui/model_tr/component/title.rs @@ -99,6 +99,9 @@ impl Component for Title { fn event(&mut self, ctx: &mut EventCtx, event: Event) -> Option { if self.needs_marquee { if !self.marquee.is_animating() { + if matches!(Event::RequestPaint, _event) { + return None; + } self.marquee.start(ctx, Instant::now()); } return self.marquee.event(ctx, event);