3602a4dca7
Signed-off-by: Markus Birth <markus@birth-online.de>
28 lines
775 B
C
28 lines
775 B
C
#include "../uk_mbirth_sonicare.h"
|
|
|
|
void sonicare_scene_about_on_enter(void* context) {
|
|
Sonicare* app = context;
|
|
Widget* widget = app->widget;
|
|
|
|
FuriString* display_text = furi_string_alloc();
|
|
|
|
furi_string_cat(display_text, "Sonicare Brush Head ID\nby mbirth.uk");
|
|
|
|
widget_add_text_scroll_element(widget, 0, 0, 128, 64, furi_string_get_cstr(display_text));
|
|
|
|
view_dispatcher_switch_to_view(app->view_dispatcher, SonicareViewWidget);
|
|
furi_string_free(display_text);
|
|
}
|
|
|
|
bool sonicare_scene_about_on_event(void* context, SceneManagerEvent event) {
|
|
UNUSED(context);
|
|
UNUSED(event);
|
|
bool consumed = false;
|
|
return consumed;
|
|
}
|
|
|
|
void sonicare_scene_about_on_exit(void* context) {
|
|
Sonicare* app = context;
|
|
widget_reset(app->widget);
|
|
}
|