feat: Show "Followed hashtags" menu item in left-nav

This commit is contained in:
Nik Clayton 2024-03-11 20:32:06 +01:00
parent 65a0fb19d9
commit 805a2a9b1d
1 changed files with 15 additions and 11 deletions

View File

@ -87,6 +87,7 @@ import app.pachli.core.navigation.AnnouncementsActivityIntent
import app.pachli.core.navigation.ComposeActivityIntent import app.pachli.core.navigation.ComposeActivityIntent
import app.pachli.core.navigation.DraftsActivityIntent import app.pachli.core.navigation.DraftsActivityIntent
import app.pachli.core.navigation.EditProfileActivityIntent import app.pachli.core.navigation.EditProfileActivityIntent
import app.pachli.core.navigation.FollowedTagsActivityIntent
import app.pachli.core.navigation.ListActivityIntent import app.pachli.core.navigation.ListActivityIntent
import app.pachli.core.navigation.LoginActivityIntent import app.pachli.core.navigation.LoginActivityIntent
import app.pachli.core.navigation.LoginActivityIntent.LoginMode import app.pachli.core.navigation.LoginActivityIntent.LoginMode
@ -644,6 +645,20 @@ class MainActivity : BottomSheetActivity(), ActionButtonActivity, MenuProvider {
startActivityWithSlideInAnimation(intent) startActivityWithSlideInAnimation(intent)
} }
}, },
primaryDrawerItem {
nameRes = R.string.title_public_trending
iconicsIcon = GoogleMaterial.Icon.gmd_trending_up
onClick = {
startActivityWithSlideInAnimation(TrendingActivityIntent(context))
}
},
primaryDrawerItem {
nameRes = R.string.title_followed_hashtags
iconRes = R.drawable.ic_hashtag
onClick = {
startActivityWithSlideInAnimation(FollowedTagsActivityIntent(context))
}
},
primaryDrawerItem { primaryDrawerItem {
nameRes = R.string.action_view_follow_requests nameRes = R.string.action_view_follow_requests
iconicsIcon = GoogleMaterial.Icon.gmd_person_add iconicsIcon = GoogleMaterial.Icon.gmd_person_add
@ -743,17 +758,6 @@ class MainActivity : BottomSheetActivity(), ActionButtonActivity, MenuProvider {
}, },
) )
} }
binding.mainDrawer.addItemsAtPosition(
5,
primaryDrawerItem {
nameRes = R.string.title_public_trending
iconicsIcon = GoogleMaterial.Icon.gmd_trending_up
onClick = {
startActivityWithSlideInAnimation(TrendingActivityIntent(context))
}
},
)
} }
if (BuildConfig.DEBUG) { if (BuildConfig.DEBUG) {