Use dedicated constants for unknown image dimensions in ImageStrategy
This commit is contained in:
parent
e6daf45c83
commit
e358867da8
1 changed files with 9 additions and 1 deletions
|
|
@ -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
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue