diff options
author | Iván Ávalos <avalos@disroot.org> | 2022-05-20 23:21:37 -0500 |
---|---|---|
committer | Iván Ávalos <avalos@disroot.org> | 2022-05-20 23:21:37 -0500 |
commit | ec157026deea7b72ff233a20c0ed40fa548f75d6 (patch) | |
tree | 71f0ebb5c358fc53130edad39436b0c7b698f818 /shared/src | |
parent | 22d2b3ed3569925fc3835dd5b53c6aacde86278a (diff) | |
download | etbsa-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/src')
-rw-r--r-- | shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/UnitsController.kt | 2 |
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 { |