| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- #include "../esubghz_chat_i.h"
- /* Prepares the text box scene. */
- void scene_on_enter_chat_box(void* context)
- {
- FURI_LOG_T(APPLICATION_NAME, "scene_on_enter_chat_box");
- furi_assert(context);
- ESubGhzChatState* state = context;
- text_box_reset(state->chat_box);
- text_box_set_text(state->chat_box,
- furi_string_get_cstr(state->chat_box_store));
- text_box_set_focus(state->chat_box, TextBoxFocusEnd);
- view_dispatcher_switch_to_view(state->view_dispatcher, ESubGhzChatView_ChatBox);
- }
- /* Handles scene manager events for the text box scene. No events are handled
- * here. */
- bool scene_on_event_chat_box(void* context, SceneManagerEvent event)
- {
- UNUSED(event);
- FURI_LOG_T(APPLICATION_NAME, "scene_on_event_chat_box");
- furi_assert(context);
- return false;
- }
- /* Cleans up the text box scene. */
- void scene_on_exit_chat_box(void* context)
- {
- FURI_LOG_T(APPLICATION_NAME, "scene_on_exit_chat_box");
- furi_assert(context);
- ESubGhzChatState* state = context;
- text_box_reset(state->chat_box);
- }
|