Absturz beim Start behoben (Musik-Ansicht ohne aktive Seite)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
MrBlakeandClaude Opus 5.5 committed 2026-11-06 21:08:53 +01:00
1 parent bc1afc4f23
commit 249bffd14e
1 file changed
+1 -1
+1 -1
View File
@@ -883,7 +883,7 @@ static void onClockClick(lv_event_t*) {
static void onTile(lv_event_t*) {
lv_obj_t* t = lv_tileview_get_tile_act(musicTv);
int idx = lv_obj_get_x(t) / SCREEN_W;
int idx = t ? lv_obj_get_x(t) / SCREEN_W : 0; // no active tile until the first swipe
for (int i = 0; i < 4; i++)
lv_obj_set_style_bg_color(pageDots[i], i == idx ? lv_color_white() : lv_color_hex(0x3a444e), 0);
}