nfc app: fix navigation in select protocol scene

This commit is contained in:
gornekich 2024-03-21 12:43:30 +00:00 committed by MX
parent 6d73b266d5
commit c1441b1331
No known key found for this signature in database
GPG key ID: 7CCC66B7DBDD1C83

View file

@ -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;
}