Skip to content

Commit 7e66b0a

Browse files
committed
Use dedicated constants for unknown image dimensions in ImageStrategy
1 parent e6daf45 commit 7e66b0a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/src/main/java/org/schabi/newpipe/util/image/ImageStrategy.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@ object ImageStrategy {
186186
fun dbUrlToImageList(url: String?): List<Image> {
187187
return when (url) {
188188
null -> listOf()
189-
else -> listOf(Image(url, -1, -1, ResolutionLevel.UNKNOWN))
189+
else -> listOf(Image(url, Image.HEIGHT_UNKNOWN, Image.WIDTH_UNKNOWN,
190+
ResolutionLevel.UNKNOWN))
190191
}
191192
}
192193
}

0 commit comments

Comments
 (0)