From 58c7a8ba3697445c3e1459fdc9d16644fdc3b0b9 Mon Sep 17 00:00:00 2001 From: Jonas Kalderstam Date: Tue, 3 Dec 2024 22:05:52 +0100 Subject: [PATCH] added feed item styles for tablets (no longer hidden on tablet) Signed-off-by: Jonas Kalderstam --- .../feeder/ui/compose/settings/Settings.kt | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/app/src/main/java/com/nononsenseapps/feeder/ui/compose/settings/Settings.kt b/app/src/main/java/com/nononsenseapps/feeder/ui/compose/settings/Settings.kt index faab77f02..c157302d2 100644 --- a/app/src/main/java/com/nononsenseapps/feeder/ui/compose/settings/Settings.kt +++ b/app/src/main/java/com/nononsenseapps/feeder/ui/compose/settings/Settings.kt @@ -99,7 +99,6 @@ import com.nononsenseapps.feeder.ui.compose.theme.SetStatusBarColorToMatchScroll import com.nononsenseapps.feeder.ui.compose.utils.ImmutableHolder import com.nononsenseapps.feeder.ui.compose.utils.WithAllPreviewProviders import com.nononsenseapps.feeder.ui.compose.utils.immutableListHolderOf -import com.nononsenseapps.feeder.ui.compose.utils.isCompactDevice import com.nononsenseapps.feeder.ui.compose.utils.onKeyEventLikeEscape import com.nononsenseapps.feeder.ui.compose.utils.rememberApiPermissionState import com.nononsenseapps.feeder.util.ActivityLauncher @@ -556,16 +555,14 @@ fun SettingsList( onCheckedChange = onOpenDrawerOnFab, ) - if (isCompactDevice()) { - MenuSetting( - title = stringResource(id = R.string.feed_item_style), - currentValue = feedItemStyleValue.asFeedItemStyleOption(), - values = ImmutableHolder(FeedItemStyle.values().map { it.asFeedItemStyleOption() }), - onSelection = { - onFeedItemStyleChange(it.feedItemStyle) - }, - ) - } + MenuSetting( + title = stringResource(id = R.string.feed_item_style), + currentValue = feedItemStyleValue.asFeedItemStyleOption(), + values = ImmutableHolder(FeedItemStyle.values().map { it.asFeedItemStyleOption() }), + onSelection = { + onFeedItemStyleChange(it.feedItemStyle) + }, + ) MenuSetting( title = stringResource(id = R.string.max_lines),