Use dedicated constants for unknown image dimensions in ImageStrategy
This commit is contained in:
parent
86827a6cd4
commit
ef74de458b
1 changed files with 9 additions and 1 deletions
|
|
@ -186,7 +186,15 @@ object ImageStrategy {
|
||||||
fun dbUrlToImageList(url: String?): List<Image> {
|
fun dbUrlToImageList(url: String?): List<Image> {
|
||||||
return when (url) {
|
return when (url) {
|
||||||
null -> listOf()
|
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