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 true
}, },
), ),
Preference.PreferenceItem.InfoPreference(stringResource(MR.strings.chapter_cache_size_info)),
Preference.PreferenceItem.SwitchPreference( Preference.PreferenceItem.SwitchPreference(
pref = libraryPreferences.autoClearChapterCache(), pref = libraryPreferences.autoClearChapterCache(),
title = stringResource(MR.strings.pref_auto_clear_chapter_cache), 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="cache_delete_error">Error occurred while clearing</string>
<string name="pref_chapter_cache_size">Chapter cache size</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">%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> <string name="pref_auto_clear_chapter_cache">Clear chapter cache on app launch</string>
<!-- Sync section --> <!-- Sync section -->