mirror of
https://github.com/TwidereProject/Twidere-Android
synced 2025-01-19 11:39:52 +01:00
fixed a possible NPE
This commit is contained in:
parent
b2cd1f0a72
commit
6c5fd5a2a1
@ -154,7 +154,7 @@ class MediaLoaderWrapper(val imageLoader: ImageLoader) {
|
|||||||
imageLoader.displayImage(url, view, profileImageDisplayOptions)
|
imageLoader.displayImage(url, view, profileImageDisplayOptions)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun loadImageSync(uri: String, targetImageSize: ImageSize, options: DisplayImageOptions): Bitmap {
|
fun loadImageSync(uri: String, targetImageSize: ImageSize, options: DisplayImageOptions): Bitmap? {
|
||||||
return imageLoader.loadImageSync(uri, targetImageSize, options)
|
return imageLoader.loadImageSync(uri, targetImageSize, options)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user