Fix asset loading bug
This commit is contained in:
parent
888e1ca898
commit
898de8116e
|
@ -190,7 +190,7 @@ class ApngLoader(parent: Job? = null) {
|
||||||
imageView,
|
imageView,
|
||||||
config
|
config
|
||||||
)
|
)
|
||||||
} else if (string.startsWith("file://android_asset/")) {
|
} else if (string.startsWith("file:///android_asset/")) {
|
||||||
kotlin.runCatching {
|
kotlin.runCatching {
|
||||||
withContext(Dispatchers.IO) {
|
withContext(Dispatchers.IO) {
|
||||||
context.assets.open(string.replace("file:///android_asset/", ""))
|
context.assets.open(string.replace("file:///android_asset/", ""))
|
||||||
|
|
Loading…
Reference in New Issue