aboutsummaryrefslogtreecommitdiff
path: root/shared
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2021-12-30 22:05:55 -0600
committerIván Ávalos <avalos@disroot.org>2021-12-30 22:05:55 -0600
commit1b179f55a610e212890f25874f29044475fdb016 (patch)
treea1a13390ae1a89e84fac2c7367c0834fb8a526c2 /shared
parentc11d9d0aaa0428e93df978642a54ba466ccf4e93 (diff)
downloadetbsa-trackermap-mobile-1b179f55a610e212890f25874f29044475fdb016.tar.gz
etbsa-trackermap-mobile-1b179f55a610e212890f25874f29044475fdb016.tar.bz2
etbsa-trackermap-mobile-1b179f55a610e212890f25874f29044475fdb016.zip
- ViewModel LiveData no longer externally mutable.
- Observers in fragments now owned by viewLifecycleOwner. - Disabled center animation on MapFragment startup - Search filter now triggered automatically. - Case insensitive filter logic.
Diffstat (limited to 'shared')
-rw-r--r--shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/UnitsController.kt6
1 files changed, 3 insertions, 3 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 db6d9b3..576ca0e 100644
--- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/UnitsController.kt
+++ b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/UnitsController.kt
@@ -58,9 +58,9 @@ class UnitsController(
private suspend fun setupFlows() {
unitsFlow.combine(queryFlow) { units, query ->
units.filter { unit ->
- unit.device.name.contains(query) ||
- unit.device.contact?.contains(query) == true ||
- unit.position?.address?.contains(query) == true
+ unit.device.name.contains(query, true) ||
+ unit.device.contact?.contains(query, true) == true ||
+ unit.position?.address?.contains(query, true) == true
}
}.collect { units ->
this.displayedUnitsFlow.value = units