Skip to content

Remove Redundant qualifier name #1551

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ fun HomeRoute(

val homeScreenType = getHomeScreenType(isExpandedScreen, uiState)
when (homeScreenType) {
HomeScreenType.FeedWithArticleDetails -> {
FeedWithArticleDetails -> {
HomeFeedWithArticleDetailsScreen(
uiState = uiState,
showTopAppBar = !isExpandedScreen,
Expand All @@ -128,7 +128,7 @@ fun HomeRoute(
onSearchInputChanged = onSearchInputChanged,
)
}
HomeScreenType.Feed -> {
Feed -> {
HomeFeedScreen(
uiState = uiState,
showTopAppBar = !isExpandedScreen,
Expand All @@ -142,7 +142,7 @@ fun HomeRoute(
onSearchInputChanged = onSearchInputChanged,
)
}
HomeScreenType.ArticleDetails -> {
ArticleDetails -> {
// Guaranteed by above condition for home screen type
check(uiState is HomeUiState.HasPosts)

Expand Down Expand Up @@ -196,13 +196,13 @@ private fun getHomeScreenType(
when (uiState) {
is HomeUiState.HasPosts -> {
if (uiState.isArticleOpen) {
HomeScreenType.ArticleDetails
ArticleDetails
} else {
HomeScreenType.Feed
Feed
}
}
is HomeUiState.NoPosts -> HomeScreenType.Feed
is HomeUiState.NoPosts -> Feed
}
}
true -> HomeScreenType.FeedWithArticleDetails
true -> FeedWithArticleDetails
}