Make metadata updating optional

This commit is contained in:
arkon
2020-05-23 10:37:46 -04:00
parent 4fdb4f14a8
commit 259946cf0a
5 changed files with 24 additions and 10 deletions
@@ -123,6 +123,8 @@ object PreferenceKeys {
const val hideNotificationContent = "hide_notification_content"
const val autoUpdateMetadata = "auto_update_metadata"
const val showLibraryUpdateErrors = "show_library_update_errors"
const val downloadNew = "download_new"
@@ -67,6 +67,8 @@ class PreferencesHelper(val context: Context) {
fun hideNotificationContent() = prefs.getBoolean(Keys.hideNotificationContent, false)
fun autoUpdateMetadata() = prefs.getBoolean(Keys.autoUpdateMetadata, false)
fun showLibraryUpdateErrors() = prefs.getBoolean(Keys.showLibraryUpdateErrors, false)
fun clear() = prefs.edit().clear().apply()