We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1211f1 commit f3e89baCopy full SHA for f3e89ba
app/src/main/java/com/google/samples/apps/nowinandroid/util/ImageLoaderAsyncFactory.kt
@@ -54,7 +54,10 @@ class ImageLoaderAsyncFactory @Inject constructor(
54
*/
55
override fun newImageLoader() =
56
trace("NiaImageLoader.runBlocking") {
57
- if (asyncNewImageLoader.isCompleted) asyncNewImageLoader.getCompleted()
58
- else runBlocking { asyncNewImageLoader.await() }
+ if (asyncNewImageLoader.isCompleted) {
+ asyncNewImageLoader.getCompleted()
59
+ } else {
60
+ runBlocking { asyncNewImageLoader.await() }
61
+ }
62
}
63
0 commit comments