1
0
mirror of https://gitlab.shinice.net/pixeldroid/PixelDroid synced 2024-12-27 23:40:38 +01:00

Bug fix whitespace hashtag

This commit is contained in:
Matthieu 2024-08-28 20:46:17 +02:00
parent 4168d9c0e7
commit 876b1fe1c3

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