From a0e33d61bd025d4b9e2109e3fc3b99c28deee3e1 Mon Sep 17 00:00:00 2001 From: tychovrahe Date: Tue, 18 Jun 2024 12:56:47 +0200 Subject: [PATCH] fix(core/mercury): fix share words hold to confirm swipe effect --- .../src/ui/model_mercury/flow/show_share_words.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/core/embed/rust/src/ui/model_mercury/flow/show_share_words.rs b/core/embed/rust/src/ui/model_mercury/flow/show_share_words.rs index a044be6b79..9209450083 100644 --- a/core/embed/rust/src/ui/model_mercury/flow/show_share_words.rs +++ b/core/embed/rust/src/ui/model_mercury/flow/show_share_words.rs @@ -112,11 +112,13 @@ impl ShowShareWords { let content_words = ShareWords::new(title, subtitle, share_words_vec, highlight_repeated).map(|_| None); - let content_confirm = - Frame::left_aligned(text_confirm, PromptScreen::new_hold_to_confirm()) - .with_footer(TR::instructions__hold_to_confirm.into(), None) - .with_swipe(SwipeDirection::Down, SwipeSettings::default()) - .map(|_| Some(FlowMsg::Confirmed)); + let content_confirm = Frame::left_aligned( + text_confirm, + SwipeContent::new(PromptScreen::new_hold_to_confirm()), + ) + .with_footer(TR::instructions__hold_to_confirm.into(), None) + .with_swipe(SwipeDirection::Down, SwipeSettings::default()) + .map(|_| Some(FlowMsg::Confirmed)); let content_check_backup_intro = Frame::left_aligned( TR::reset__check_wallet_backup_title.into(),