Skip to content

Commit

Permalink
Ignore sheet hidden state events in home screen
Browse files Browse the repository at this point in the history
  • Loading branch information
msasikanth committed Aug 6, 2024
1 parent 0e14fa5 commit 17eda8b
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,12 @@ internal fun HomeScreen(homePresenter: HomePresenter, modifier: Modifier = Modif
rememberStandardBottomSheetState(
initialValue = state.feedsSheetState,
confirmValueChange = {
homePresenter.dispatch(HomeEvent.FeedsSheetStateChanged(it))
if (it != SheetValue.Hidden) {
homePresenter.dispatch(HomeEvent.FeedsSheetStateChanged(it))
} else {
homePresenter.dispatch(HomeEvent.FeedsSheetStateChanged(SheetValue.PartiallyExpanded))
}

true
}
)
Expand Down

0 comments on commit 17eda8b

Please sign in to comment.