Merge pull request #5531 from k9mail/fix_folder_list_filter
Ignore extraneous spaces when filtering the folder list
This commit is contained in:
commit
78317f17b4
1 changed files with 1 additions and 0 deletions
|
@ -146,6 +146,7 @@ class ManageFoldersFragment : Fragment() {
|
|||
val locale = Locale.getDefault()
|
||||
val displayName = item.displayName.toLowerCase(locale)
|
||||
return constraint.splitToSequence(" ")
|
||||
.filter { it.isNotEmpty() }
|
||||
.map { it.toLowerCase(locale) }
|
||||
.any { it in displayName }
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue