refactor: update continue watching thumbnail preference logic

This commit is contained in:
tapframe 2026-05-06 18:16:27 +05:30
parent 3f4a0f6a02
commit b3ed47732a
2 changed files with 6 additions and 6 deletions

View file

@ -524,8 +524,8 @@
<string name="settings_continue_watching_style_wide_description">Info-dense horizontal card</string> <string name="settings_continue_watching_style_wide_description">Info-dense horizontal card</string>
<string name="settings_continue_watching_up_next_description">Show next episode based on the furthest watched episode. Disable for rewatches to use the most recently watched episode instead.</string> <string name="settings_continue_watching_up_next_description">Show next episode based on the furthest watched episode. Disable for rewatches to use the most recently watched episode instead.</string>
<string name="settings_continue_watching_up_next_title">Up Next From Furthest Episode</string> <string name="settings_continue_watching_up_next_title">Up Next From Furthest Episode</string>
<string name="settings_continue_watching_use_episode_thumbnails_description">Use episode thumbnails as default image. When disabled, uses backdrop.</string> <string name="settings_continue_watching_use_episode_thumbnails_description">Prefer episode thumbnails when available.</string>
<string name="settings_continue_watching_use_episode_thumbnails_title">Use Episode Thumbnails in Continue Watching</string> <string name="settings_continue_watching_use_episode_thumbnails_title">Prefer Episode Thumbnails in Continue Watching</string>
<string name="settings_content_discovery_section_home">HOME</string> <string name="settings_content_discovery_section_home">HOME</string>
<string name="settings_content_discovery_section_sources">SOURCES</string> <string name="settings_content_discovery_section_sources">SOURCES</string>
<string name="settings_content_discovery_addons_description">Install, remove, refresh, and sort your content sources.</string> <string name="settings_content_discovery_addons_description">Install, remove, refresh, and sort your content sources.</string>

View file

@ -56,25 +56,25 @@ private fun ContinueWatchingItem.continueWatchingArtworkUrl(
): String? = when { ): String? = when {
isNextUp && useEpisodeThumbnails -> firstNonBlank( isNextUp && useEpisodeThumbnails -> firstNonBlank(
episodeThumbnail, episodeThumbnail,
background,
poster, poster,
background,
imageUrl, imageUrl,
) )
isNextUp -> firstNonBlank( isNextUp -> firstNonBlank(
background,
poster, poster,
background,
episodeThumbnail, episodeThumbnail,
imageUrl, imageUrl,
) )
useEpisodeThumbnails -> firstNonBlank( useEpisodeThumbnails -> firstNonBlank(
episodeThumbnail, episodeThumbnail,
background,
poster, poster,
background,
imageUrl, imageUrl,
) )
else -> firstNonBlank( else -> firstNonBlank(
background,
poster, poster,
background,
episodeThumbnail, episodeThumbnail,
imageUrl, imageUrl,
) )