Displays info about clearing cache in settings

This commit is contained in:
tristancorbellari 2024-01-09 15:22:57 +02:00
parent 62b7333993
commit bc83abb1a4
2 changed files with 2 additions and 0 deletions

View File

@ -304,6 +304,7 @@ object SettingsDataScreen : SearchableSettings {
true
},
),
Preference.PreferenceItem.InfoPreference(stringResource(MR.strings.chapter_cache_size_info)),
Preference.PreferenceItem.SwitchPreference(
pref = libraryPreferences.autoClearChapterCache(),
title = stringResource(MR.strings.pref_auto_clear_chapter_cache),

View File

@ -536,6 +536,7 @@
<string name="cache_delete_error">Error occurred while clearing</string>
<string name="pref_chapter_cache_size">Chapter cache size</string>
<string name="chapter_cache_size">%1$s MB</string>
<string name="chapter_cache_size_info">Changes will take effect upon app restart or clearing chapter cache.</string>
<string name="pref_auto_clear_chapter_cache">Clear chapter cache on app launch</string>
<!-- Sync section -->