Skip to content

Commit

Permalink
fit full name on display
Browse files Browse the repository at this point in the history
  • Loading branch information
xMasterX committed Feb 10, 2024
1 parent 37708b0 commit 8a86571
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions applications/main/nfc/scenes/nfc_scene_set_type.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,10 @@ void nfc_scene_set_type_on_enter(void* context) {
nfc_protocol_support_common_submenu_callback,
instance);

FuriString* str = furi_string_alloc();
for(size_t i = 0; i < NfcDataGeneratorTypeNum; i++) {
furi_string_cat_str(str, nfc_data_generator_get_name(i));
furi_string_replace_str(str, "Mifare", "MIFARE");

submenu_add_item(
submenu,
furi_string_get_cstr(str),
i,
nfc_protocol_support_common_submenu_callback,
instance);
furi_string_reset(str);
const char* name = nfc_data_generator_get_name(i);
submenu_add_item(submenu, name, i, nfc_protocol_support_common_submenu_callback, instance);
}
furi_string_free(str);

view_dispatcher_switch_to_view(instance->view_dispatcher, NfcViewMenu);
}
Expand Down

0 comments on commit 8a86571

Please sign in to comment.