@@ -32,10 +32,12 @@ Evil_PortalApp *evil_portal_app_alloc() {
32
32
app -> has_command_queue = false;
33
33
app -> command_index = 0 ;
34
34
app -> portal_logs = furi_string_alloc ();
35
+
35
36
36
37
app -> gui = furi_record_open (RECORD_GUI );
37
38
38
39
app -> view_dispatcher = view_dispatcher_alloc ();
40
+
39
41
app -> scene_manager = scene_manager_alloc (& evil_portal_scene_handlers , app );
40
42
view_dispatcher_enable_queue (app -> view_dispatcher );
41
43
view_dispatcher_set_event_callback_context (app -> view_dispatcher , app );
@@ -54,6 +56,10 @@ Evil_PortalApp *evil_portal_app_alloc() {
54
56
view_dispatcher_add_view (app -> view_dispatcher , Evil_PortalAppViewVarItemList ,
55
57
variable_item_list_get_view (app -> var_item_list ));
56
58
59
+ app -> text_input = text_input_alloc ();
60
+ view_dispatcher_add_view (app -> view_dispatcher , Evil_PortalAppViewTextInput , text_input_get_view (app -> text_input ));
61
+
62
+
57
63
for (int i = 0 ; i < NUM_MENU_ITEMS ; ++ i ) {
58
64
app -> selected_option_index [i ] = 0 ;
59
65
}
@@ -65,6 +71,7 @@ Evil_PortalApp *evil_portal_app_alloc() {
65
71
app -> text_box_store = furi_string_alloc ();
66
72
furi_string_reserve (app -> text_box_store , EVIL_PORTAL_TEXT_BOX_STORE_SIZE );
67
73
74
+ //scene_manager_next_scene(app->scene_manager, Evil_PortalSceneRename);
68
75
scene_manager_next_scene (app -> scene_manager , Evil_PortalSceneStart );
69
76
70
77
return app ;
@@ -92,7 +99,8 @@ void evil_portal_app_free(Evil_PortalApp *app) {
92
99
93
100
text_box_free (app -> text_box );
94
101
furi_string_free (app -> text_box_store );
95
-
102
+ text_input_free (app -> text_input );
103
+
96
104
// View dispatcher
97
105
view_dispatcher_free (app -> view_dispatcher );
98
106
scene_manager_free (app -> scene_manager );
0 commit comments