diff --git a/Apps/ImmichElias/main/Source/main.c b/Apps/ImmichElias/main/Source/main.c index 2aec4f3..5eb400c 100644 --- a/Apps/ImmichElias/main/Source/main.c +++ b/Apps/ImmichElias/main/Source/main.c @@ -548,12 +548,24 @@ static void ui_update_all(AppCtx* ctx) { char lvgl_path[384]; snprintf(lvgl_path, sizeof(lvgl_path), "A:%s", ctx->saved_img_path); lv_image_set_src(ctx->img_page, lvgl_path); - // Fullscreen background: request full display size from proxy, widget covers display + lv_obj_clear_flag(ctx->img_page, LV_OBJ_FLAG_HIDDEN); + // Fullscreen background: widget covers entire display lv_obj_set_size(ctx->img_page, ctx->disp_w > 0 ? ctx->disp_w : ctx->img_w, ctx->disp_h > 0 ? ctx->disp_h : ctx->img_h); lv_obj_center(ctx->img_page); - } else lv_image_set_src(ctx->img_page, LV_SYMBOL_IMAGE); + ESP_LOGI(TAG, "lv_img_set_src %s %dx%d", lvgl_path, ctx->disp_w, ctx->disp_h); + } else { + ESP_LOGW(TAG, "Image file not found for display: %s", ctx->saved_img_path); + lv_image_set_src(ctx->img_page, LV_SYMBOL_IMAGE); + lv_obj_clear_flag(ctx->img_page, LV_OBJ_FLAG_HIDDEN); + } } else { - if (photo_count==0) lv_image_set_src(ctx->img_page, LV_SYMBOL_IMAGE); + if (photo_count==0) { + lv_image_set_src(ctx->img_page, LV_SYMBOL_IMAGE); + lv_obj_clear_flag(ctx->img_page, LV_OBJ_FLAG_HIDDEN); + } else { + // Keep previous image to avoid black flash, or hide if you prefer + // lv_obj_add_flag(ctx->img_page, LV_OBJ_FLAG_HIDDEN); + } } } tt_lvgl_unlock();