|
|
@ -54,7 +54,10 @@ class ImageLoaderAsyncFactory @Inject constructor(
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
override fun newImageLoader() =
|
|
|
|
override fun newImageLoader() =
|
|
|
|
trace("NiaImageLoader.runBlocking") {
|
|
|
|
trace("NiaImageLoader.runBlocking") {
|
|
|
|
if (asyncNewImageLoader.isCompleted) asyncNewImageLoader.getCompleted()
|
|
|
|
if (asyncNewImageLoader.isCompleted) {
|
|
|
|
else runBlocking { asyncNewImageLoader.await() }
|
|
|
|
asyncNewImageLoader.getCompleted()
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
runBlocking { asyncNewImageLoader.await() }
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|