From 843e748de3d8d4afff7b7b6baa47193e4138191f Mon Sep 17 00:00:00 2001 From: arkon Date: Sun, 19 Mar 2023 12:41:29 -0400 Subject: [PATCH] Clean up library display settings tab a bit --- .../library/LibrarySettingsDialog.kt | 20 +++++++++---------- i18n/src/main/res/values/strings.xml | 20 +++++++++---------- 2 files changed, 19 insertions(+), 21 deletions(-) diff --git a/app/src/main/java/eu/kanade/presentation/library/LibrarySettingsDialog.kt b/app/src/main/java/eu/kanade/presentation/library/LibrarySettingsDialog.kt index ba871b0fd..e418e4234 100644 --- a/app/src/main/java/eu/kanade/presentation/library/LibrarySettingsDialog.kt +++ b/app/src/main/java/eu/kanade/presentation/library/LibrarySettingsDialog.kt @@ -184,7 +184,7 @@ private fun ColumnScope.DisplayPage( ) } - HeadingItem(R.string.badges_header) + HeadingItem(R.string.complications_header) val downloadBadge by screenModel.libraryPreferences.downloadBadge().collectAsState() CheckboxItem( label = stringResource(R.string.action_display_download_badge), @@ -209,6 +209,14 @@ private fun ColumnScope.DisplayPage( screenModel.togglePreference(LibraryPreferences::languageBadge) }, ) + val showContinueReadingButton by screenModel.libraryPreferences.showContinueReadingButton().collectAsState() + CheckboxItem( + label = stringResource(R.string.action_display_show_continue_reading_button), + checked = showContinueReadingButton, + onClick = { + screenModel.togglePreference(LibraryPreferences::showContinueReadingButton) + }, + ) HeadingItem(R.string.tabs_header) val categoryTabs by screenModel.libraryPreferences.categoryTabs().collectAsState() @@ -227,14 +235,4 @@ private fun ColumnScope.DisplayPage( screenModel.togglePreference(LibraryPreferences::categoryNumberOfItems) }, ) - - HeadingItem(R.string.other_header) - val showContinueReadingButton by screenModel.libraryPreferences.showContinueReadingButton().collectAsState() - CheckboxItem( - label = stringResource(R.string.action_display_show_continue_reading_button), - checked = showContinueReadingButton, - onClick = { - screenModel.togglePreference(LibraryPreferences::showContinueReadingButton) - }, - ) } diff --git a/i18n/src/main/res/values/strings.xml b/i18n/src/main/res/values/strings.xml index b932752d9..9cdd8ad11 100644 --- a/i18n/src/main/res/values/strings.xml +++ b/i18n/src/main/res/values/strings.xml @@ -14,7 +14,7 @@ Tracking History - + More Settings Download queue @@ -113,7 +113,7 @@ Language Show category tabs Show number of items - Show continue reading button + Continue reading button Disable Pin Unpin @@ -582,15 +582,15 @@ You are now logged out Unknown error - + Updating category From library Downloaded chapters - Badges + + Complications Tabs - Other - + No more results No results found @@ -612,7 +612,7 @@ Order by Date - + Ongoing Unknown Unknown author @@ -644,7 +644,7 @@ Add to library? No description - + Chapter %1$s Downloading (%1$d/%2$d) Error @@ -757,14 +757,14 @@ Skipping %d chapters, either the source is missing them or they have been filtered out - + Updating library An update is already running Unable to open last read chapter Library last updated: %s Just now - + Ch. %1$s - %2$s Clear history History deleted