image: key based on object hashcode
Key images based on the full object hashcode, alongside the UID. Hopefully this reduces the likelihood of images getting stuck further.
This commit is contained in:
@@ -36,12 +36,11 @@ import org.oxycblt.auxio.list.Sort
|
||||
import org.oxycblt.auxio.music.*
|
||||
|
||||
class SongKeyer @Inject constructor() : Keyer<Song> {
|
||||
override fun key(data: Song, options: Options) =
|
||||
"${data.album.uid}${data.album.songs.hashCode()}"
|
||||
override fun key(data: Song, options: Options) = "${data.album.uid}${data.album.hashCode()}"
|
||||
}
|
||||
|
||||
class ParentKeyer @Inject constructor() : Keyer<MusicParent> {
|
||||
override fun key(data: MusicParent, options: Options) = "${data.uid}${data.songs.hashCode()}"
|
||||
override fun key(data: MusicParent, options: Options) = "${data.uid}${data.hashCode()}"
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user