Skip to content

Commit

Permalink
Optimize containsFilterString
Browse files Browse the repository at this point in the history
  • Loading branch information
shaiguelman committed Jul 18, 2022
1 parent 40854dc commit 5b617b0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ class DeckAdapter(private val layoutInflater: LayoutInflater, context: Context)

private fun containsFilterString(filterPattern: String, root: AbstractDeckTreeNode): Boolean {
val deckName = root.fullDeckName
return deckName.lowercase(Locale.getDefault()).contains(filterPattern) || deckName.lowercase(Locale.ROOT).contains(filterPattern)
return deckName.contains(filterPattern, ignoreCase = true)
}
}

Expand Down

0 comments on commit 5b617b0

Please sign in to comment.