Skip to content

Improve album art caching and player animations#3

Merged
lostf1sh merged 1 commit intomasterfrom
codex/fix-caching-system-and-improve-animations
Nov 26, 2025
Merged

Improve album art caching and player animations#3
lostf1sh merged 1 commit intomasterfrom
codex/fix-caching-system-and-improve-animations

Conversation

@lostf1sh
Copy link
Copy Markdown
Owner

Summary

  • add a reusable cache-key helper and share Coil image loaders to reuse album art caches
  • prefetch neighboring album art with aligned cache keys and stronger caching policies for faster now playing loads
  • smooth album art crossfades to reduce perceived stutter when switching songs

Testing

  • ⚠️ ../gradlew testDebugUnitTest (fails: Android SDK not configured in the container)

Codex Task

@lostf1sh lostf1sh merged commit 43b5a40 into master Nov 26, 2025
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

fun buildCacheKey(data: Any?, targetSize: Size, prefix: String = "img"): String? {
val base = data?.toString() ?: return null
fun Dimension.asPixels(): Int = pxOrElse { -1 }

P0 Badge Fix unresolved pxOrElse reference in cache key helper

The new buildCacheKey helper calls pxOrElse inside Dimension.asPixels, but the file doesn’t import coil.size.pxOrElse (the extension that provides that function). Because the file’s package is com.theveloper…, there’s no in-scope definition for pxOrElse, so the module fails to compile with an unresolved reference at this call site. Please import the extension (or qualify it) so the new helper builds.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@lostf1sh lostf1sh deleted the codex/fix-caching-system-and-improve-animations branch November 26, 2025 17:09
@lostf1sh lostf1sh restored the codex/fix-caching-system-and-improve-animations branch November 26, 2025 21:10
lostf1sh added a commit that referenced this pull request Nov 26, 2025
…and-improve-animations"

This reverts commit 43b5a40, reversing
changes made to 88baf7d.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant