Updated on 2026-08-14
This commit is contained in:
parent
4a5fcc48fa
commit
a46fc13fb0
1 changed files with 6 additions and 2 deletions
|
|
@ -129,13 +129,17 @@ internal class DefaultFeedEntryComponent @AssistedInject constructor(
|
|||
onHeaderSizeChange: (Dp) -> Unit,
|
||||
modifier: Modifier,
|
||||
) {
|
||||
BackHandler(enabled = bottomSheetState.value == BottomSheetState.EXPANDED) {
|
||||
val stackStack = stack.subscribeAsState()
|
||||
BackHandler(
|
||||
enabled = bottomSheetState.value == BottomSheetState.EXPANDED &&
|
||||
stackStack.value.active.configuration !is FeedEntryChildFactory.Child.Feed,
|
||||
) {
|
||||
onChildBack()
|
||||
}
|
||||
|
||||
EntryContent(
|
||||
bottomSheetState = bottomSheetState,
|
||||
stackState = stack.subscribeAsState(),
|
||||
stackState = stackStack,
|
||||
onHeaderSizeChange = onHeaderSizeChange,
|
||||
isOpenedInBottomSheet = true,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue