aboutsummaryrefslogtreecommitdiff
path: root/shared/src/commonMain/kotlin/mx
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:43:25 -0600
commit1c4c5128fac5b1b6c8d9de29bd1ccf6262c7894b (patch)
tree1468e72b8b6afdb1527c7092751f85605efc7e4e /shared/src/commonMain/kotlin/mx
parentc11d9d0aaa0428e93df978642a54ba466ccf4e93 (diff)
downloadetbsa-trackermap-mobile-1c4c5128fac5b1b6c8d9de29bd1ccf6262c7894b.tar.gz
etbsa-trackermap-mobile-1c4c5128fac5b1b6c8d9de29bd1ccf6262c7894b.tar.bz2
etbsa-trackermap-mobile-1c4c5128fac5b1b6c8d9de29bd1ccf6262c7894b.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/src/commonMain/kotlin/mx')
-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