BT hid navigation fix (#911)
* bt: fix bt hid navigation * Cli: change datetime format to more ISO-ish, add datetime validation. Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
This commit is contained in:
@@ -28,7 +28,7 @@ void bt_hid_dialog_callback(DialogExResult result, void* context) {
|
||||
// TODO switch to Submenu after Media is done
|
||||
view_dispatcher_stop(app->view_dispatcher);
|
||||
} else if(result == DialogExResultRight) {
|
||||
view_dispatcher_switch_to_view(app->view_dispatcher, app->view_id);
|
||||
view_dispatcher_switch_to_view(app->view_dispatcher, BtHidViewKeynote);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,9 +56,6 @@ void bt_hid_connection_status_changed_callback(BtStatus status, void* context) {
|
||||
BtHid* bt_hid_app_alloc() {
|
||||
BtHid* app = furi_alloc(sizeof(BtHid));
|
||||
|
||||
// Load Bluetooth settings
|
||||
bt_settings_load(&app->bt_settings);
|
||||
|
||||
// Gui
|
||||
app->gui = furi_record_open("gui");
|
||||
|
||||
@@ -156,10 +153,6 @@ int32_t bt_hid_app(void* p) {
|
||||
view_dispatcher_run(app->view_dispatcher);
|
||||
|
||||
bt_set_status_changed_callback(app->bt, NULL, NULL);
|
||||
// Stop advertising if bt was off
|
||||
if(app->bt_settings.enabled) {
|
||||
furi_hal_bt_stop_advertising();
|
||||
}
|
||||
// Change back profile to Serial
|
||||
bt_set_profile(app->bt, BtProfileSerial);
|
||||
|
||||
|
@@ -6,7 +6,6 @@
|
||||
#include <gui/view.h>
|
||||
#include <gui/view_dispatcher.h>
|
||||
#include <applications/notification/notification.h>
|
||||
#include <applications/bt/bt_settings.h>
|
||||
|
||||
#include <gui/modules/submenu.h>
|
||||
#include <gui/modules/dialog_ex.h>
|
||||
@@ -14,7 +13,6 @@
|
||||
#include "views/bt_hid_media.h"
|
||||
|
||||
typedef struct {
|
||||
BtSettings bt_settings;
|
||||
Bt* bt;
|
||||
Gui* gui;
|
||||
NotificationApp* notifications;
|
||||
|
Reference in New Issue
Block a user