80
80
#include "status_api.h"
81
81
#include "ui_core_confirm.h"
82
82
#include "ui_screens.h"
83
+ #include "ui_state_machine.h"
83
84
#include "utils.h"
84
85
#include "wallet.h"
85
86
#include "wallet_list.h"
@@ -355,7 +356,7 @@ STATIC bool inheritance_decryption_handle_initiate_query(
355
356
result .decrypt .which_response =
356
357
INHERITANCE_DECRYPT_DATA_WITH_PIN_RESPONSE_CONFIRMATION_TAG ;
357
358
inheritance_send_result (& result );
358
- delay_scr_init (ui_text_processing , DELAY_TIME );
359
+ delay_scr_init (ui_text_processing , DELAY_SHORT );
359
360
return true;
360
361
}
361
362
@@ -608,7 +609,7 @@ static bool decrypt_data(void) {
608
609
}
609
610
610
611
} while (0 );
611
- delay_scr_init (ui_text_processing , DELAY_TIME );
612
+ delay_scr_init (ui_text_processing , DELAY_SHORT );
612
613
return status ;
613
614
}
614
615
@@ -620,9 +621,14 @@ static bool show_data(void) {
620
621
uint8_t tag = decryption_context -> data [i ].plain_data [0 ];
621
622
622
623
if (tag == INHERITANCE_ONLY_SHOW_ON_DEVICE ) {
623
- message_scr_init (
624
- (const char * )& decryption_context -> data [i ]
625
- .plain_data [3 ]); ///< sizeof (tag) + sizeof (length) = 3
624
+ char msg [100 ] = {0 };
625
+ snprintf (msg ,
626
+ sizeof (msg ),
627
+ UI_TEXT_PIN , ///< TODO: Make this generic
628
+ & decryption_context -> data [i ].plain_data [3 ]);
629
+ message_scr_init (msg ); ///< sizeof (tag) + sizeof (length) = 3
630
+ // Do not care about the return value from confirmation screen
631
+ (void )get_state_on_confirm_scr (0 , 0 , 0 );
626
632
} else {
627
633
uint16_t offset = 1 ; // Skip tag
628
634
decryption_context -> response_payload .decrypted_data [response_count ]
@@ -661,10 +667,10 @@ decryption_error_type_e inheritance_decrypt_data(inheritance_query_t *query) {
661
667
if (inheritance_decryption_handle_initiate_query (query ) &&
662
668
inheritance_get_encrypted_data (query ) && decrypt_data () && show_data () &&
663
669
send_decrypted_data (query )) {
664
- delay_scr_init (ui_text_inheritance_decryption_flow_success , DELAY_TIME );
670
+ delay_scr_init (ui_text_inheritance_decryption_flow_success , DELAY_SHORT );
665
671
SET_ERROR_TYPE (DECRYPTION_OK );
666
672
} else {
667
- delay_scr_init (ui_text_inheritance_decryption_flow_failure , DELAY_TIME );
673
+ delay_scr_init (ui_text_inheritance_decryption_flow_failure , DELAY_SHORT );
668
674
}
669
675
decryption_handle_errors ();
670
676
0 commit comments