Updated on 2026-08-14
This commit is contained in:
parent
5902d80ee2
commit
cdc3f78320
1 changed files with 9 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
|||
package com.tangem.features.markets.details.impl
|
||||
|
||||
import androidx.activity.compose.BackHandler
|
||||
import androidx.compose.runtime.*
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.unit.Dp
|
||||
|
|
@ -69,6 +70,10 @@ internal class DefaultMarketsTokenDetailsComponent @AssistedInject constructor(
|
|||
model.isVisibleOnScreen.value = bsState == BottomSheetState.EXPANDED
|
||||
}
|
||||
|
||||
BackHandler(enabled = bsState == BottomSheetState.EXPANDED) {
|
||||
navigateBack()
|
||||
}
|
||||
|
||||
MarketsTokenDetailsContent(
|
||||
modifier = modifier,
|
||||
backgroundColor = LocalMainBottomSheetColor.current.value,
|
||||
|
|
@ -84,6 +89,10 @@ internal class DefaultMarketsTokenDetailsComponent @AssistedInject constructor(
|
|||
|
||||
@Composable
|
||||
override fun Content(modifier: Modifier) {
|
||||
BackHandler {
|
||||
navigateBack()
|
||||
}
|
||||
|
||||
LifecycleStartEffect(Unit) {
|
||||
model.isVisibleOnScreen.value = true
|
||||
onStopOrDispose {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue