mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
fix(demo_music): fix the previous button in the music demo is not clickable (#5808)
This commit is contained in:
parent
f71bfd6eef
commit
5764436f13
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user