Merge pull request #258 from Aga-C/sort-blocked-keywords

Added sorting blocked keywords (#256)
This commit is contained in:
Naveen Singh 2024-12-19 09:50:43 +05:30 committed by GitHub
commit c7aaa9e768
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -71,9 +71,9 @@ class ManageBlockedKeywordsActivity : BaseSimpleActivity(), RefreshRecyclerViewL
private fun updateBlockedKeywords() {
ensureBackgroundThread {
val blockedKeywords = config.blockedKeywords
val blockedKeywords = config.blockedKeywords.sorted().toArrayList()
runOnUiThread {
ManageBlockedKeywordsAdapter(this, blockedKeywords.toArrayList(), this, binding.manageBlockedKeywordsList) {
ManageBlockedKeywordsAdapter(this, blockedKeywords, this, binding.manageBlockedKeywordsList) {
addOrEditBlockedKeyword(it as String)
}.apply {
binding.manageBlockedKeywordsList.adapter = this