nfc_scene_file_select.c 735 B

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