aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/views/FrostContentView.kt
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2021-11-23 11:58:30 -0800
committerAllan Wang <me@allanwang.ca>2021-11-23 11:58:30 -0800
commite8d9dca1ede1295f67e27faf731a5caa1bd2810a (patch)
treea500c321ee411fc0107221971d29cb659d6d61c1 /app/src/main/kotlin/com/pitchedapps/frost/views/FrostContentView.kt
parent0c97abd838ee834ef17d1b2e746fa26ea9663bd5 (diff)
downloadfrost-e8d9dca1ede1295f67e27faf731a5caa1bd2810a.tar.gz
frost-e8d9dca1ede1295f67e27faf731a5caa1bd2810a.tar.bz2
frost-e8d9dca1ede1295f67e27faf731a5caa1bd2810a.zip
Convert login refresh channel to flow and remove some outdated tests
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/views/FrostContentView.kt')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/views/FrostContentView.kt3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/views/FrostContentView.kt b/app/src/main/kotlin/com/pitchedapps/frost/views/FrostContentView.kt
index f9d04ad1..d2083816 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/views/FrostContentView.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/views/FrostContentView.kt
@@ -132,6 +132,9 @@ abstract class FrostContentViewBase(
/**
* While this can be conflated, there exist situations where we wish to watch refresh cycles.
* Here, we'd need to make sure we don't skip events
+ *
+ * TODO ensure there is only one flow provider is this is still separated in login
+ * Use case for shared flow is to avoid emitting before subscribing; buffer can probably be size 1
*/
private val refreshMutableFlow = MutableSharedFlow<Boolean>(
extraBufferCapacity = 10,