From 5764436f135a11b726a0b16eb4a2dde261adb9d8 Mon Sep 17 00:00:00 2001 From: verosys Date: Thu, 7 Mar 2024 15:53:31 +0100 Subject: [PATCH] fix(demo_music): fix the previous button in the music demo is not clickable (#5808) --- demos/music/lv_demo_music_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/demos/music/lv_demo_music_main.c b/demos/music/lv_demo_music_main.c index 50c3d4e05..109c900f8 100644 --- a/demos/music/lv_demo_music_main.c +++ b/demos/music/lv_demo_music_main.c @@ -586,6 +586,7 @@ static lv_obj_t * create_ctrl_box(lv_obj_t * parent) lv_image_set_src(icon, &img_lv_demo_music_btn_prev); lv_obj_set_grid_cell(icon, LV_GRID_ALIGN_CENTER, 2, 1, LV_GRID_ALIGN_CENTER, 0, 1); lv_obj_add_event_cb(icon, prev_click_event_cb, LV_EVENT_CLICKED, NULL); + lv_obj_add_flag(icon, LV_OBJ_FLAG_CLICKABLE); play_obj = lv_imagebutton_create(cont); lv_imagebutton_set_src(play_obj, LV_IMAGEBUTTON_STATE_RELEASED, NULL, &img_lv_demo_music_btn_play, NULL);