nfc_scene_file_select.c 573 B

123456789101112131415161718192021
  1. #include "../nfc_i.h"
  2. void nfc_scene_file_select_on_enter(void* context) {
  3. Nfc* nfc = context;
  4. // Process file_select return
  5. if(nfc_file_select(nfc->dev)) {
  6. scene_manager_next_scene(nfc->scene_manager, NfcSceneSavedMenu);
  7. } else {
  8. scene_manager_search_and_switch_to_previous_scene(nfc->scene_manager, NfcSceneStart);
  9. }
  10. }
  11. bool nfc_scene_file_select_on_event(void* context, SceneManagerEvent event) {
  12. UNUSED(context);
  13. UNUSED(event);
  14. return false;
  15. }
  16. void nfc_scene_file_select_on_exit(void* context) {
  17. UNUSED(context);
  18. }