Skip to content

Commit

Permalink
show actual hashtags in title of hashtag tab (#4868)
Browse files Browse the repository at this point in the history
Instead of just "Hashtags".

Actually, this was a bug. The code to generate the correct title is
already here, but it wasn't called. 🤷

closes #4867
  • Loading branch information
connyduck authored Jan 14, 2025
1 parent 345c63c commit fcc8dc1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app/src/main/java/com/keylesspalace/tusky/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -886,10 +886,7 @@ class MainActivity : BottomSheetActivity(), ActionButtonActivity, MenuProvider {
tabLayoutMediator = TabLayoutMediator(activeTabLayout, binding.viewPager, true) {
tab: TabLayout.Tab, position: Int ->
tab.icon = AppCompatResources.getDrawable(this@MainActivity, tabs[position].icon)
tab.contentDescription = when (tabs[position].id) {
LIST -> tabs[position].arguments[1]
else -> getString(tabs[position].text)
}
tab.contentDescription = tabs[position].title(this)
if (tabs[position].id == DIRECT) {
val badge = tab.orCreateBadge
badge.isVisible = activeAccount.hasDirectMessageBadge
Expand Down

0 comments on commit fcc8dc1

Please sign in to comment.