CappielloAntonio / tempo

An open source and lightweight music client for Subsonic, designed and built natively for Android.
GNU General Public License v3.0
1.05k stars 49 forks source link

[BUG] - Album art cache gets corrupted #107

Open sibwaf opened 10 months ago

sibwaf commented 10 months ago

Describe the bug

Scrolling the album grid too fast while the album art cache was not yet populated results in pictures being corrupted and either never displaying or displaying only partially (lower part gets blacked out).

Expected behavior

Album art doesn't get corrupted.

To Reproduce

  1. Clear out the app cache
  2. Go to Library -> Albums -> See all
  3. Scroll down not waiting for images to get loaded
  4. Scroll back up

Environment

Logs or Screenshots

All the albums here have a proper cover which gets displayed when the cache doesn't break on them.

Screenshot

Additional context

Probably somehow connected to using Glide inside a RecyclerView, though I'm not too sure.

Could be helpful: