commit cbbd39a321f3472ae124ccd9106bede8cb1c0b06 Author: Fabio Mazza Date: Fri Nov 15 01:30:59 2024 +0100 Filter in lowercase diff --git a/app/src/main/java/it/reyboz/bustorino/viewmodels/LinesGridShowingViewModel.kt b/app/src/main/java/it/reyboz/bustorino/viewmodels/LinesGridShowingViewModel.kt index 9d928cf..21eab54 100644 --- a/app/src/main/java/it/reyboz/bustorino/viewmodels/LinesGridShowingViewModel.kt +++ b/app/src/main/java/it/reyboz/bustorino/viewmodels/LinesGridShowingViewModel.kt @@ -45,7 +45,7 @@ class LinesGridShowingViewModel(application: Application) : AndroidViewModel(app } private fun filterLinesForQuery(lines: List, query: String): List{ - val result= lines.filter { r-> query in r.shortName } + val result= lines.filter { r-> query.lowercase() in r.shortName.lowercase() } return result }