diff --git a/applications/services/loader/loader_cli.c b/applications/services/loader/loader_cli.c index 263b9601ac..dd6d184785 100644 --- a/applications/services/loader/loader_cli.c +++ b/applications/services/loader/loader_cli.c @@ -2,6 +2,7 @@ #include #include #include +#include #include "loader.h" static void loader_cli_print_usage() { @@ -53,6 +54,9 @@ static void loader_cli_open(FuriString* args, Loader* loader) { const char* app_name_str = furi_string_get_cstr(app_name); + NotificationApp* notifications = furi_record_open(RECORD_NOTIFICATION); + notification_message_block(notifications, &sequence_display_backlight_on); + FuriString* error_message = furi_string_alloc(); if(loader_start(loader, app_name_str, args_str, error_message) != LoaderStatusOk) { printf("%s\r\n", furi_string_get_cstr(error_message)); diff --git a/applications/services/notification/notification_app.c b/applications/services/notification/notification_app.c index 038ebc42c0..c81ecabcbf 100644 --- a/applications/services/notification/notification_app.c +++ b/applications/services/notification/notification_app.c @@ -453,8 +453,11 @@ static bool notification_load_settings(NotificationApp* app) { static void input_event_callback(const void* value, void* context) { furi_assert(value); furi_assert(context); + const InputEvent* event = value; NotificationApp* app = context; - notification_message(app, &sequence_display_backlight_on); + if(event->sequence_source == INPUT_SEQUENCE_SOURCE_HARDWARE) { + notification_message(app, &sequence_display_backlight_on); + } } // App alloc