From 545c4349d6eedfc2b7fbc274b8fda58eb4204c98 Mon Sep 17 00:00:00 2001 From: derskythe Date: Mon, 26 Sep 2022 21:26:51 +0400 Subject: [PATCH] add vibro on finish and main menu set left --- .../plugins/subbrute/scenes/subbrute_scene_run_attack.c | 2 ++ applications/plugins/subbrute/views/subbrute_main_view.c | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/applications/plugins/subbrute/scenes/subbrute_scene_run_attack.c b/applications/plugins/subbrute/scenes/subbrute_scene_run_attack.c index 978c7de40..385f43b9b 100644 --- a/applications/plugins/subbrute/scenes/subbrute_scene_run_attack.c +++ b/applications/plugins/subbrute/scenes/subbrute_scene_run_attack.c @@ -127,6 +127,8 @@ bool subbrute_scene_run_attack_on_event(void* context, SceneManagerEvent event) event.event == SubBruteCustomEventTypeBackPressed) { // furi_timer_stop(state->timer); // Stop transmit + notification_message(instance->notifications, &sequence_display_backlight_on); + notification_message(instance->notifications, &sequence_single_vibro); subbrute_attack_view_set_current_step(view, instance->device->key_index); scene_manager_search_and_switch_to_previous_scene( instance->scene_manager, SubBruteSceneSetupAttack); diff --git a/applications/plugins/subbrute/views/subbrute_main_view.c b/applications/plugins/subbrute/views/subbrute_main_view.c index 141e3ce27..8d8bf477e 100644 --- a/applications/plugins/subbrute/views/subbrute_main_view.c +++ b/applications/plugins/subbrute/views/subbrute_main_view.c @@ -127,9 +127,9 @@ void subbrute_main_view_draw(Canvas* canvas, SubBruteMainViewModel* model) { if(m->index == position) { canvas_draw_str_aligned( canvas, - 64, + 4, 9 + (item_position * item_height) + STATUS_BAR_Y_SHIFT, - AlignCenter, + AlignLeft, AlignCenter, str); elements_frame( @@ -137,9 +137,9 @@ void subbrute_main_view_draw(Canvas* canvas, SubBruteMainViewModel* model) { } else { canvas_draw_str_aligned( canvas, - 64, + 4, 9 + (item_position * item_height) + STATUS_BAR_Y_SHIFT, - AlignCenter, + AlignLeft, AlignCenter, str); }