diff options
author | Iván Ávalos <avalos@disroot.org> | 2021-12-30 22:05:55 -0600 |
---|---|---|
committer | Iván Ávalos <avalos@disroot.org> | 2021-12-30 22:05:55 -0600 |
commit | 5477efa8a11409610619f6dac3ca9303d308c3e4 (patch) | |
tree | 0f0cdd76a77d99db08004e3a968d98c07e95ef8e /shared | |
parent | 4be0f818e17320145ea7508d89bb21d0e0e7c0bf (diff) | |
download | etbsa-trackermap-mobile-5477efa8a11409610619f6dac3ca9303d308c3e4.tar.gz etbsa-trackermap-mobile-5477efa8a11409610619f6dac3ca9303d308c3e4.tar.bz2 etbsa-trackermap-mobile-5477efa8a11409610619f6dac3ca9303d308c3e4.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.kt | 6 |
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 |