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:43:25 -0600
commitdc1dd5ea2af6dde9be1c460e8c20ed332ee72c8a (patch)
tree6f881c2172d3fbaf447dedffe89aa52fd641fd34 /shared
parent4be0f818e17320145ea7508d89bb21d0e0e7c0bf (diff)
downloadetbsa-trackermap-mobile-dc1dd5ea2af6dde9be1c460e8c20ed332ee72c8a.tar.gz
etbsa-trackermap-mobile-dc1dd5ea2af6dde9be1c460e8c20ed332ee72c8a.tar.bz2
etbsa-trackermap-mobile-dc1dd5ea2af6dde9be1c460e8c20ed332ee72c8a.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