diff --git a/app/src/main/kotlin/com/mr3y/podcaster/ui/screens/EpisodeDetailsScreen.kt b/app/src/main/kotlin/com/mr3y/podcaster/ui/screens/EpisodeDetailsScreen.kt index f128c8d9..99390d89 100644 --- a/app/src/main/kotlin/com/mr3y/podcaster/ui/screens/EpisodeDetailsScreen.kt +++ b/app/src/main/kotlin/com/mr3y/podcaster/ui/screens/EpisodeDetailsScreen.kt @@ -105,7 +105,7 @@ fun EpisodeDetailsScreen( externalContentPadding = contentPadding, excludedWindowInsets = excludedWindowInsets, eventSink = { event -> - when(event) { + when (event) { is EpisodeDetailsUIEvent.Refresh -> viewModel.refresh() is EpisodeDetailsUIEvent.RefreshResultConsumed -> viewModel.consumeRefreshResult() is EpisodeDetailsUIEvent.Retry -> viewModel.retry() diff --git a/app/src/main/kotlin/com/mr3y/podcaster/ui/screens/ExploreScreen.kt b/app/src/main/kotlin/com/mr3y/podcaster/ui/screens/ExploreScreen.kt index ed9ee288..5c6b5463 100644 --- a/app/src/main/kotlin/com/mr3y/podcaster/ui/screens/ExploreScreen.kt +++ b/app/src/main/kotlin/com/mr3y/podcaster/ui/screens/ExploreScreen.kt @@ -108,7 +108,7 @@ fun ExploreScreen( onPodcastClick = onPodcastClick, onNavDrawerClick = onNavDrawerClick, eventSink = { event -> - when(event) { + when (event) { is ExploreUIEvent.Search -> viewModel.search() is ExploreUIEvent.UpdateSearchQuery -> viewModel.updateSearchQuery(event.newSearchQuery) is ExploreUIEvent.DeleteSearchQuery -> viewModel.deleteSearchQuery(event.searchQuery) diff --git a/app/src/main/kotlin/com/mr3y/podcaster/ui/screens/PodcastDetailsScreen.kt b/app/src/main/kotlin/com/mr3y/podcaster/ui/screens/PodcastDetailsScreen.kt index 7a66bd17..28c390b0 100644 --- a/app/src/main/kotlin/com/mr3y/podcaster/ui/screens/PodcastDetailsScreen.kt +++ b/app/src/main/kotlin/com/mr3y/podcaster/ui/screens/PodcastDetailsScreen.kt @@ -131,7 +131,7 @@ fun PodcastDetailsScreen( excludedWindowInsets = excludedWindowInsets, onEpisodeClick = onEpisodeClick, eventSink = { event -> - when(event) { + when (event) { is PodcastDetailsUIEvent.Subscribe -> viewModel.subscribe() is PodcastDetailsUIEvent.UnSubscribe -> viewModel.unsubscribe() is PodcastDetailsUIEvent.Refresh -> viewModel.refresh() diff --git a/app/src/main/kotlin/com/mr3y/podcaster/ui/screens/SubscriptionsScreen.kt b/app/src/main/kotlin/com/mr3y/podcaster/ui/screens/SubscriptionsScreen.kt index fa4aa4f8..6a706f7e 100644 --- a/app/src/main/kotlin/com/mr3y/podcaster/ui/screens/SubscriptionsScreen.kt +++ b/app/src/main/kotlin/com/mr3y/podcaster/ui/screens/SubscriptionsScreen.kt @@ -134,7 +134,7 @@ fun SubscriptionsScreen( externalContentPadding = contentPadding, excludedWindowInsets = excludedWindowInsets, eventSink = { event -> - when(event) { + when (event) { is SubscriptionsUIEvent.Refresh -> viewModel.refresh() is SubscriptionsUIEvent.RefreshResultConsumed -> viewModel.consumeRefreshResult() is SubscriptionsUIEvent.ToggleAppTheme -> {