From a69fff4639b09dea2939a90685c1c22ed09f143a Mon Sep 17 00:00:00 2001 From: Sasikanth Miriyampalli Date: Thu, 26 Oct 2023 11:01:25 +0530 Subject: [PATCH] Minimise sheet when a feed is selected in the expanded bottom sheet --- .../kotlin/dev/sasikanth/rss/reader/feeds/FeedsPresenter.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/shared/src/commonMain/kotlin/dev/sasikanth/rss/reader/feeds/FeedsPresenter.kt b/shared/src/commonMain/kotlin/dev/sasikanth/rss/reader/feeds/FeedsPresenter.kt index cdfe64ec1..57b73890d 100644 --- a/shared/src/commonMain/kotlin/dev/sasikanth/rss/reader/feeds/FeedsPresenter.kt +++ b/shared/src/commonMain/kotlin/dev/sasikanth/rss/reader/feeds/FeedsPresenter.kt @@ -123,7 +123,10 @@ class FeedsPresenter( } private fun onFeedSelected(feed: Feed) { - coroutineScope.launch { observableSelectedFeed.selectFeed(feed) } + coroutineScope.launch { + observableSelectedFeed.selectFeed(feed) + effects.emit(FeedsEffect.MinimizeSheet) + } } private fun onGoBackClicked() {