adam-codersgu / supernova

A Kotlin-based Android application that allows the user to play music from their device while custom animations fall over the album artwork of the currently playing song.
0 stars 0 forks source link

Enhanced RecyclerView update algorithm #51

Closed adam-codersgu closed 1 year ago

adam-codersgu commented 1 year ago

For RecyclerView adapters where each item is unique (e.g. Album, play queue.. basically anywhere that's not a user playlist - which could include multiple instances of the same song), we could enhance the adapter to use notifyItemMoved and more item-specific changes. Rather than the current implementation which often reloads the remainder of the adapter from scratch upon noticing a non-matching item.

adam-codersgu commented 1 year ago

Working on branch enhancement/recycler_view_algo

adam-codersgu commented 1 year ago

Completed and merged https://github.com/adam-codersgu/supernova/pull/64