2022-01-05 16:10:18 +00:00
|
|
|
#include "../irda_app.h"
|
2021-06-02 15:16:05 +00:00
|
|
|
|
|
|
|
void IrdaAppSceneEditRenameDone::on_enter(IrdaApp* app) {
|
|
|
|
IrdaAppViewManager* view_manager = app->get_view_manager();
|
|
|
|
Popup* popup = view_manager->get_popup();
|
|
|
|
|
2021-07-07 08:57:49 +00:00
|
|
|
popup_set_icon(popup, 32, 5, &I_DolphinNice_96x59);
|
2021-06-02 15:16:05 +00:00
|
|
|
|
2022-02-16 17:02:22 +00:00
|
|
|
popup_set_header(popup, "Saved!", 5, 7, AlignLeft, AlignTop);
|
2021-06-02 15:16:05 +00:00
|
|
|
|
|
|
|
popup_set_callback(popup, IrdaApp::popup_callback);
|
|
|
|
popup_set_context(popup, app);
|
|
|
|
popup_set_timeout(popup, 1500);
|
|
|
|
popup_enable_timeout(popup);
|
|
|
|
|
|
|
|
view_manager->switch_to(IrdaAppViewManager::ViewType::Popup);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool IrdaAppSceneEditRenameDone::on_event(IrdaApp* app, IrdaAppEvent* event) {
|
|
|
|
bool consumed = false;
|
|
|
|
|
|
|
|
if(event->type == IrdaAppEvent::Type::PopupTimer) {
|
|
|
|
app->switch_to_next_scene(IrdaApp::Scene::Remote);
|
|
|
|
consumed = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
return consumed;
|
|
|
|
}
|
|
|
|
|
|
|
|
void IrdaAppSceneEditRenameDone::on_exit(IrdaApp* app) {
|
|
|
|
}
|