From b3ed47732a74252004bc28773ff878174d255d99 Mon Sep 17 00:00:00 2001 From: tapframe <85391825+tapframe@users.noreply.github.com> Date: Wed, 6 May 2026 18:16:27 +0530 Subject: [PATCH] refactor: update continue watching thumbnail preference logic --- .../src/commonMain/composeResources/values/strings.xml | 4 ++-- .../home/components/HomeContinueWatchingSection.kt | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/composeApp/src/commonMain/composeResources/values/strings.xml b/composeApp/src/commonMain/composeResources/values/strings.xml index 6f851f18..d69fdba4 100644 --- a/composeApp/src/commonMain/composeResources/values/strings.xml +++ b/composeApp/src/commonMain/composeResources/values/strings.xml @@ -524,8 +524,8 @@ Info-dense horizontal card Show next episode based on the furthest watched episode. Disable for rewatches to use the most recently watched episode instead. Up Next From Furthest Episode - Use episode thumbnails as default image. When disabled, uses backdrop. - Use Episode Thumbnails in Continue Watching + Prefer episode thumbnails when available. + Prefer Episode Thumbnails in Continue Watching HOME SOURCES Install, remove, refresh, and sort your content sources. diff --git a/composeApp/src/commonMain/kotlin/com/nuvio/app/features/home/components/HomeContinueWatchingSection.kt b/composeApp/src/commonMain/kotlin/com/nuvio/app/features/home/components/HomeContinueWatchingSection.kt index c3f44947..9bf4d92a 100644 --- a/composeApp/src/commonMain/kotlin/com/nuvio/app/features/home/components/HomeContinueWatchingSection.kt +++ b/composeApp/src/commonMain/kotlin/com/nuvio/app/features/home/components/HomeContinueWatchingSection.kt @@ -56,25 +56,25 @@ private fun ContinueWatchingItem.continueWatchingArtworkUrl( ): String? = when { isNextUp && useEpisodeThumbnails -> firstNonBlank( episodeThumbnail, - background, poster, + background, imageUrl, ) isNextUp -> firstNonBlank( - background, poster, + background, episodeThumbnail, imageUrl, ) useEpisodeThumbnails -> firstNonBlank( episodeThumbnail, - background, poster, + background, imageUrl, ) else -> firstNonBlank( - background, poster, + background, episodeThumbnail, imageUrl, )