Skip to content

Commit 385461c

Browse files
committed
ViewExtensions: loadBitmap allow null
Signed-off-by: Fung <fython@163.com>
1 parent 7f7d026 commit 385461c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kotlinyan-common/src/main/kotlin/moe/feng/kotlinyan/common/ViewExtensions.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ interface ViewExtensions {
139139
return this.takeScreenshot()
140140
}
141141

142-
fun ImageView.loadBitmap(getBitmap : () -> Bitmap) {
142+
fun ImageView.loadBitmap(getBitmap : () -> Bitmap?) {
143143
thread {
144144
val result = getBitmap()
145145
Handler(context.mainLooper).post { setImageBitmap(result) }

0 commit comments

Comments
 (0)