Skip to content

Commit

Permalink
Ignore sheet hidden state in home screen
Browse files Browse the repository at this point in the history
  • Loading branch information
msasikanth committed Aug 3, 2024
1 parent 9ee34fb commit e1522cd
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,12 @@ internal fun HomeScreen(homePresenter: HomePresenter, modifier: Modifier = Modif
rememberStandardBottomSheetState(
initialValue = state.feedsSheetState,
confirmValueChange = {
homePresenter.dispatch(HomeEvent.FeedsSheetStateChanged(it))
true
if (it != SheetValue.Hidden) {
homePresenter.dispatch(HomeEvent.FeedsSheetStateChanged(it))
true
} else {
false
}
}
)
val bottomSheetScaffoldState =
Expand Down

0 comments on commit e1522cd

Please sign in to comment.