aboutsummaryrefslogtreecommitdiff
path: root/shared
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2022-05-20 23:21:37 -0500
committerIván Ávalos <avalos@disroot.org>2022-05-20 23:21:37 -0500
commitec157026deea7b72ff233a20c0ed40fa548f75d6 (patch)
tree71f0ebb5c358fc53130edad39436b0c7b698f818 /shared
parent22d2b3ed3569925fc3835dd5b53c6aacde86278a (diff)
downloadetbsa-trackermap-mobile-ec157026deea7b72ff233a20c0ed40fa548f75d6.tar.gz
etbsa-trackermap-mobile-ec157026deea7b72ff233a20c0ed40fa548f75d6.tar.bz2
etbsa-trackermap-mobile-ec157026deea7b72ff233a20c0ed40fa548f75d6.zip
- [shared] unitsFlow exposed to allow access to unfiltered units.
- [android] Improved memory usage by using unitsFlow in map. - [ios] Not rewritten yet, filter won't work.
Diffstat (limited to 'shared')
-rw-r--r--shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/UnitsController.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/UnitsController.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/UnitsController.kt
index 8c36d50..529ca1b 100644
--- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/UnitsController.kt
+++ b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/UnitsController.kt
@@ -46,7 +46,7 @@ class UnitsController(
}
val displayedUnitsFlow = MutableStateFlow<List<UnitInformation>>(emptyList())
- private val unitsFlow = MutableStateFlow<List<UnitInformation>>(emptyList())
+ val unitsFlow = MutableStateFlow<List<UnitInformation>>(emptyList())
private val queryFlow = MutableStateFlow("")
init {