Bug fix whitespace hashtag

This commit is contained in:
Matthieu 2024-08-28 20:46:17 +02:00
parent 4168d9c0e7
commit 876b1fe1c3
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ class ArrangeTabsFragment: DialogFragment() {
checkBox.isChecked = model.uiState.value.tabsChecked[position].second
fun callbackOnClickListener(tabNew: Tab, isCheckedNew: Boolean, hashtag: String? = null) {
tabNew.filter = hashtag?.split("#")?.filter { it.isNotBlank() }?.get(0)
tabNew.filter = hashtag?.split("#")?.filter { it.isNotBlank() }?.get(0)?.trim()
model.tabsCheckReplace(position, Pair(tabNew, isCheckedNew))
checkBox.isChecked = isCheckedNew