diff options
author | Allan Wang <me@allanwang.ca> | 2019-01-04 01:56:04 -0500 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2019-01-04 01:56:04 -0500 |
commit | 339ce9db98c1e6dfb1c8d69f81806680b1efa666 (patch) | |
tree | 75b3366004ddf08359490d4d4b83d63366c0a68d /app/src/main/kotlin/com/pitchedapps/frost/fragments | |
parent | 8c77e02e89dfec7bff04a397dfc82613ccd1242a (diff) | |
download | frost-339ce9db98c1e6dfb1c8d69f81806680b1efa666.tar.gz frost-339ce9db98c1e6dfb1c8d69f81806680b1efa666.tar.bz2 frost-339ce9db98c1e6dfb1c8d69f81806680b1efa666.zip |
Convert global continuations to completable deferred
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/fragments')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/fragments/RecyclerFragments.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/fragments/RecyclerFragments.kt b/app/src/main/kotlin/com/pitchedapps/frost/fragments/RecyclerFragments.kt index f7ed9937..d9d518b1 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/fragments/RecyclerFragments.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/fragments/RecyclerFragments.kt @@ -74,7 +74,7 @@ class MenuFragment : GenericRecyclerFragment<MenuItemData, IItem<*, *>>() { override suspend fun reloadImpl(progress: (Int) -> Unit): List<MenuItemData>? = withContext(Dispatchers.IO) { val cookie = FbCookie.webCookie ?: return@withContext null progress(10) - val auth = fbAuth.fetch(cookie) + val auth = fbAuth.fetch(cookie).await() progress(30) val data = auth.getMenuData().invoke() ?: return@withContext null if (data.data.isEmpty()) return@withContext null |