musikr: fix broken siloed covers
Caused by a missing param equality.
This commit is contained in:
parent
ebcedb49eb
commit
292ea9d8a1
1 changed files with 5 additions and 0 deletions
|
@ -19,6 +19,11 @@
|
||||||
package org.oxycblt.musikr.cover
|
package org.oxycblt.musikr.cover
|
||||||
|
|
||||||
class CoverParams private constructor(val resolution: Int, val quality: Int) {
|
class CoverParams private constructor(val resolution: Int, val quality: Int) {
|
||||||
|
override fun hashCode() = 31 * resolution + quality
|
||||||
|
|
||||||
|
override fun equals(other: Any?) =
|
||||||
|
other is CoverParams && other.resolution == resolution && other.quality == quality
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
fun of(resolution: Int, quality: Int): CoverParams {
|
fun of(resolution: Int, quality: Int): CoverParams {
|
||||||
check(resolution > 0) { "Resolution must be positive" }
|
check(resolution > 0) { "Resolution must be positive" }
|
||||||
|
|
Loading…
Reference in a new issue