Skip to content

Commit

Permalink
[FL-3796], [FL-3795] NFC UI fixes (#3532)
Browse files Browse the repository at this point in the history
* nfc app: fix navigation in select protocol scene
* nfc app: fix text box position and size on emulation screen

Co-authored-by: あく <[email protected]>
  • Loading branch information
gornekich and skotopes authored Mar 25, 2024
1 parent c52f28e commit 23940bf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ static void nfc_protocol_support_scene_emulate_on_enter(NfcApp* instance) {
}

widget_add_text_box_element(
widget, 56, 33, 71, 25, AlignCenter, AlignTop, furi_string_get_cstr(temp_str), false);
widget, 50, 33, 78, 31, AlignCenter, AlignTop, furi_string_get_cstr(temp_str), false);

furi_string_free(temp_str);

Expand Down
5 changes: 5 additions & 0 deletions applications/main/nfc/scenes/nfc_scene_select_protocol.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ bool nfc_scene_select_protocol_on_event(void* context, SceneManagerEvent event)
scene_manager_set_scene_state(
instance->scene_manager, NfcSceneSelectProtocol, event.event);
consumed = true;
} else if(event.type == SceneManagerEventTypeBack) {
if(scene_manager_has_previous_scene(instance->scene_manager, NfcSceneDetect)) {
consumed = scene_manager_search_and_switch_to_previous_scene(
instance->scene_manager, NfcSceneStart);
}
}
return consumed;
}
Expand Down

0 comments on commit 23940bf

Please sign in to comment.