Fix build
This commit is contained in:
1 parent
a9449bfbc7
commit
27c5598133
1 file changed
+5
-1
@@ -47,6 +47,7 @@ import com.hippo.unifile.UniFile
|
||||
import com.hippo.unifile.openInputStream
|
||||
import java.nio.ByteBuffer
|
||||
import kotlin.math.min
|
||||
import okio.FileSystem
|
||||
import okio.buffer
|
||||
import okio.source
|
||||
import splitties.init.appCtx
|
||||
@@ -125,7 +126,10 @@ class Image private constructor(drawable: Drawable, private val src: AutoCloseab
|
||||
scale = Scale.FILL,
|
||||
allowInexactSize = true,
|
||||
)
|
||||
val drawable = ImageSource(src.source.openInputStream().source().buffer()).use {
|
||||
val drawable = ImageSource(
|
||||
src.source.openInputStream().source().buffer(),
|
||||
FileSystem.SYSTEM,
|
||||
).use {
|
||||
BitmapFactoryDecoder(it, options).decode().image.asDrawable(appCtx.resources)
|
||||
}
|
||||
src.close()
|
||||
|
||||
Reference in new issue
Block a user