music: fix incorrect hashing
Forgot a + hashCode in like half of the hashing statements, ended up causing incorrect image cache hits.
This commit is contained in:
@@ -182,8 +182,8 @@ class SongImpl(
|
|||||||
.toList()
|
.toList()
|
||||||
.ifEmpty { listOf(RawGenre()) }
|
.ifEmpty { listOf(RawGenre()) }
|
||||||
|
|
||||||
hashCode = 31 * rawSong.hashCode()
|
hashCode = 31 * hashCode + rawSong.hashCode()
|
||||||
hashCode = 31 * nameFactory.hashCode()
|
hashCode = 31 * hashCode + nameFactory.hashCode()
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun hashCode() = hashCode
|
override fun hashCode() = hashCode
|
||||||
@@ -332,7 +332,7 @@ class AlbumImpl(
|
|||||||
dateAdded = earliestDateAdded
|
dateAdded = earliestDateAdded
|
||||||
|
|
||||||
hashCode = 31 * hashCode + rawAlbum.hashCode()
|
hashCode = 31 * hashCode + rawAlbum.hashCode()
|
||||||
hashCode = 31 * nameFactory.hashCode()
|
hashCode = 31 * hashCode + nameFactory.hashCode()
|
||||||
hashCode = 31 * hashCode + songs.hashCode()
|
hashCode = 31 * hashCode + songs.hashCode()
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -529,7 +529,7 @@ class GenreImpl(
|
|||||||
durationMs = totalDuration
|
durationMs = totalDuration
|
||||||
|
|
||||||
hashCode = 31 * hashCode + rawGenre.hashCode()
|
hashCode = 31 * hashCode + rawGenre.hashCode()
|
||||||
hashCode = 31 * nameFactory.hashCode()
|
hashCode = 31 * hashCode + nameFactory.hashCode()
|
||||||
hashCode = 31 * hashCode + songs.hashCode()
|
hashCode = 31 * hashCode + songs.hashCode()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user