mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-04-23 23:10:58 +02:00
Adds back button to the top of the Nav bar of the Thread view.
This commit is contained in:
parent
dbbfaae02c
commit
b9486eb3e6
@ -178,6 +178,7 @@ private fun RenderTopRouteBar(
|
||||
Route.Community.base -> CommunityTopBar(id, accountViewModel, nav, navPopBack)
|
||||
Route.Hashtag.base -> HashTagTopBar(id, accountViewModel, navPopBack)
|
||||
Route.Geohash.base -> GeoHashTopBar(id, accountViewModel, navPopBack)
|
||||
Route.Note.base -> ThreadTopBar(id, accountViewModel, navPopBack)
|
||||
else -> MainTopBar(drawerState, accountViewModel, nav)
|
||||
}
|
||||
} else {
|
||||
@ -187,6 +188,20 @@ private fun RenderTopRouteBar(
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun ThreadTopBar(
|
||||
id: String,
|
||||
accountViewModel: AccountViewModel,
|
||||
navPopBack: () -> Unit
|
||||
) {
|
||||
FlexibleTopBarWithBackButton(
|
||||
title = {
|
||||
Text(stringResource(id = R.string.thread_title))
|
||||
},
|
||||
popBack = navPopBack
|
||||
)
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun GeoHashTopBar(
|
||||
tag: String,
|
||||
|
@ -663,4 +663,5 @@
|
||||
</string>
|
||||
|
||||
<string name="payment_required_title">Message from %1$s</string>
|
||||
<string name="thread_title">Thread</string>
|
||||
</resources>
|
||||
|
Loading…
x
Reference in New Issue
Block a user