fix(ImmichElias): black screen fix, clear hidden flag, fullscreen 480x320 bg, bottom-only UI tap toggle, filter VIDEO, random pagination 100, cache

This commit is contained in:
Adolfo
2026-07-25 16:05:59 -04:00
parent 4c71c77bf6
commit c3689e82cc
+15 -3
View File
@@ -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();