Use dedicated constants for unknown image dimensions in ImageStrategy

This commit is contained in:
tobigr 2026-02-07 12:35:45 +01:00
parent e6daf45c83
commit e358867da8

View File

@ -186,7 +186,15 @@ object ImageStrategy {
fun dbUrlToImageList(url: String?): List<Image> {
return when (url) {
null -> listOf()
else -> listOf(Image(url, -1, -1, ResolutionLevel.UNKNOWN))
else -> listOf(
Image(
url,
Image.HEIGHT_UNKNOWN,
Image.WIDTH_UNKNOWN,
ResolutionLevel.UNKNOWN
)
)
}
}
}