mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-12 11:18:35 -07:00
App crash bugfixes
- BLE Spam: Fix icon position - Hex Viewer: Fix view alloc/free - Chess: Fix view alloc/free - UHF RFID: Fix view alloc/free
This commit is contained in:
Submodule applications/external updated: d8dcb90bda...676d035fb6
@@ -45,9 +45,6 @@ HexViewer* hex_viewer_app_alloc() {
|
|||||||
view_dispatcher_set_custom_event_callback(
|
view_dispatcher_set_custom_event_callback(
|
||||||
app->view_dispatcher, hex_viewer_custom_event_callback);
|
app->view_dispatcher, hex_viewer_custom_event_callback);
|
||||||
|
|
||||||
app->submenu = submenu_alloc();
|
|
||||||
app->text_input = text_input_alloc();
|
|
||||||
|
|
||||||
// Set defaults, in case no config loaded
|
// Set defaults, in case no config loaded
|
||||||
app->haptic = 1;
|
app->haptic = 1;
|
||||||
app->speaker = 1;
|
app->speaker = 1;
|
||||||
@@ -61,6 +58,7 @@ HexViewer* hex_viewer_app_alloc() {
|
|||||||
// Load configs
|
// Load configs
|
||||||
hex_viewer_read_settings(app);
|
hex_viewer_read_settings(app);
|
||||||
|
|
||||||
|
app->submenu = submenu_alloc();
|
||||||
view_dispatcher_add_view(
|
view_dispatcher_add_view(
|
||||||
app->view_dispatcher, HexViewerViewIdMenu, submenu_get_view(app->submenu));
|
app->view_dispatcher, HexViewerViewIdMenu, submenu_get_view(app->submenu));
|
||||||
|
|
||||||
@@ -70,6 +68,7 @@ HexViewer* hex_viewer_app_alloc() {
|
|||||||
HexViewerViewIdStartscreen,
|
HexViewerViewIdStartscreen,
|
||||||
hex_viewer_startscreen_get_view(app->hex_viewer_startscreen));
|
hex_viewer_startscreen_get_view(app->hex_viewer_startscreen));
|
||||||
|
|
||||||
|
app->text_input = text_input_alloc();
|
||||||
view_dispatcher_add_view(
|
view_dispatcher_add_view(
|
||||||
app->view_dispatcher, HexViewerViewIdScroll, text_input_get_view(app->text_input));
|
app->view_dispatcher, HexViewerViewIdScroll, text_input_get_view(app->text_input));
|
||||||
|
|
||||||
@@ -97,11 +96,13 @@ void hex_viewer_app_free(HexViewer* app) {
|
|||||||
|
|
||||||
// View Dispatcher
|
// View Dispatcher
|
||||||
view_dispatcher_remove_view(app->view_dispatcher, HexViewerViewIdMenu);
|
view_dispatcher_remove_view(app->view_dispatcher, HexViewerViewIdMenu);
|
||||||
view_dispatcher_remove_view(app->view_dispatcher, HexViewerViewIdScroll);
|
|
||||||
view_dispatcher_remove_view(app->view_dispatcher, HexViewerViewIdSettings);
|
|
||||||
|
|
||||||
submenu_free(app->submenu);
|
submenu_free(app->submenu);
|
||||||
|
view_dispatcher_remove_view(app->view_dispatcher, HexViewerViewIdStartscreen);
|
||||||
|
hex_viewer_startscreen_free(app->hex_viewer_startscreen);
|
||||||
|
view_dispatcher_remove_view(app->view_dispatcher, HexViewerViewIdScroll);
|
||||||
text_input_free(app->text_input);
|
text_input_free(app->text_input);
|
||||||
|
view_dispatcher_remove_view(app->view_dispatcher, HexViewerViewIdSettings);
|
||||||
|
variable_item_list_free(app->variable_item_list);
|
||||||
|
|
||||||
view_dispatcher_free(app->view_dispatcher);
|
view_dispatcher_free(app->view_dispatcher);
|
||||||
furi_record_close(RECORD_STORAGE);
|
furi_record_close(RECORD_STORAGE);
|
||||||
|
|||||||
Reference in New Issue
Block a user