aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/views/FrostRecyclerView.kt
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2021-11-22 22:53:00 -0800
committerAllan Wang <me@allanwang.ca>2021-11-22 22:53:00 -0800
commit779ec08188f4bda736b3e0f2940570f1f7eb49e1 (patch)
tree2bbff3f522055f01fc8ad5074e619d739017ddef /app/src/main/kotlin/com/pitchedapps/frost/views/FrostRecyclerView.kt
parent1dd7be9174f1740aa1cae29f6d62d6f83f5917ba (diff)
downloadfrost-779ec08188f4bda736b3e0f2940570f1f7eb49e1.tar.gz
frost-779ec08188f4bda736b3e0f2940570f1f7eb49e1.tar.bz2
frost-779ec08188f4bda736b3e0f2940570f1f7eb49e1.zip
Migrate progress channel to flow
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/views/FrostRecyclerView.kt')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/views/FrostRecyclerView.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/views/FrostRecyclerView.kt b/app/src/main/kotlin/com/pitchedapps/frost/views/FrostRecyclerView.kt
index a2b71572..9e21ede8 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/views/FrostRecyclerView.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/views/FrostRecyclerView.kt
@@ -80,8 +80,8 @@ class FrostRecyclerView @JvmOverloads constructor(
if (prefs.animate) fadeOut(onFinish = onReloadClear)
scope.launch {
parent.refreshEmit(true)
- recyclerContract.reload { parent.progressChannel.offer(it) }
- parent.progressChannel.offer(100)
+ recyclerContract.reload { parent.progressEmit(it) }
+ parent.progressEmit(100)
parent.refreshEmit(false)
if (prefs.animate) circularReveal()
}