Merge pull request #6536 from thundernest/filter_folder_list
Ignore extraneous spaces when filtering the folder list
This commit is contained in:
commit
6e68cb0bf5
1 changed files with 1 additions and 0 deletions
|
@ -212,6 +212,7 @@ class ChooseFolderActivity : K9Activity() {
|
|||
val locale = Locale.getDefault()
|
||||
val displayName = item.displayName.lowercase(locale)
|
||||
return constraint.splitToSequence(" ")
|
||||
.filter { it.isNotEmpty() }
|
||||
.map { it.lowercase(locale) }
|
||||
.any { it in displayName }
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue