2021-07-02 16:44:10 +03:00
|
|
|
#include "../nfc_i.h"
|
[FL-1962, FL-2464, FL-2465, FL-2466, FL-2560, FL-2637, FL-2595] Ibutton, Infrared, LfRFID GUI fixes (#1392)
* Ibutton, Infrared, LfRFID GUI fixes
* Loading screens update
Co-authored-by: あく <alleteam@gmail.com>
2022-07-17 10:41:16 +03:00
|
|
|
#include "nfc/nfc_device.h"
|
2021-07-02 16:44:10 +03:00
|
|
|
|
2021-09-21 12:34:16 +03:00
|
|
|
void nfc_scene_file_select_on_enter(void* context) {
|
2022-04-19 18:23:58 +03:00
|
|
|
Nfc* nfc = context;
|
2021-07-02 16:44:10 +03:00
|
|
|
// Process file_select return
|
[FL-1962, FL-2464, FL-2465, FL-2466, FL-2560, FL-2637, FL-2595] Ibutton, Infrared, LfRFID GUI fixes (#1392)
* Ibutton, Infrared, LfRFID GUI fixes
* Loading screens update
Co-authored-by: あく <alleteam@gmail.com>
2022-07-17 10:41:16 +03:00
|
|
|
nfc_device_set_loading_callback(nfc->dev, nfc_show_loading_popup, nfc);
|
2021-11-09 00:55:06 +03:00
|
|
|
if(nfc_file_select(nfc->dev)) {
|
2022-08-17 18:08:13 +03:00
|
|
|
scene_manager_set_scene_state(nfc->scene_manager, NfcSceneSavedMenu, 0);
|
2021-07-12 21:56:14 +03:00
|
|
|
scene_manager_next_scene(nfc->scene_manager, NfcSceneSavedMenu);
|
2021-07-02 16:44:10 +03:00
|
|
|
} else {
|
2021-07-28 17:52:00 +03:00
|
|
|
scene_manager_search_and_switch_to_previous_scene(nfc->scene_manager, NfcSceneStart);
|
2021-07-02 16:44:10 +03:00
|
|
|
}
|
[FL-1962, FL-2464, FL-2465, FL-2466, FL-2560, FL-2637, FL-2595] Ibutton, Infrared, LfRFID GUI fixes (#1392)
* Ibutton, Infrared, LfRFID GUI fixes
* Loading screens update
Co-authored-by: あく <alleteam@gmail.com>
2022-07-17 10:41:16 +03:00
|
|
|
nfc_device_set_loading_callback(nfc->dev, NULL, nfc);
|
2021-07-02 16:44:10 +03:00
|
|
|
}
|
|
|
|
|
2021-09-21 12:34:16 +03:00
|
|
|
bool nfc_scene_file_select_on_event(void* context, SceneManagerEvent event) {
|
2022-05-06 16:37:10 +03:00
|
|
|
UNUSED(context);
|
|
|
|
UNUSED(event);
|
2021-07-02 16:44:10 +03:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2021-09-21 12:34:16 +03:00
|
|
|
void nfc_scene_file_select_on_exit(void* context) {
|
2022-05-06 16:37:10 +03:00
|
|
|
UNUSED(context);
|
2021-07-02 16:44:10 +03:00
|
|
|
}
|