Removing hidden tags.
Some checks are pending
continuous-integration/drone/push Build is running

This commit is contained in:
aminecmi
2022-12-09 20:23:01 +01:00
parent 9833a66a64
commit 4316dc6516
21 changed files with 2 additions and 101 deletions

View File

@ -27,7 +27,6 @@ class AppSettingsService {
private var _notifyNewItems: Boolean? = null
private var _itemsNumber: Int? = null
private var _apiTimeout: Long? = null
private var _hiddenTags: List<String>? = null
private var _refreshMinutes: Long = 360
private var _markOnScroll: Boolean? = null
private var _activeAlignment: Int? = null
@ -208,19 +207,6 @@ class AppSettingsService {
return _refreshMinutes
}
private fun refreshHiddenTags() {
if (settings.getString(HIDDEN_TAGS, "").isNotEmpty()) {
_hiddenTags = settings.getString(HIDDEN_TAGS, "").replace("\\s".toRegex(), "").split(",")
}
}
fun getHiddenTags(): List<String> {
if (_hiddenTags != null) {
refreshHiddenTags()
}
return _hiddenTags.orEmpty()
}
private fun refreshInfiniteLoadingEnabled() {
_infiniteLoading = settings.getBoolean(INFINITE_LOADING, false)
}
@ -357,7 +343,6 @@ class AppSettingsService {
refreshPeriodicRefreshEnabled()
refreshRefreshWhenChargingOnlyEnabled()
refreshRefreshMinutes()
refreshHiddenTags()
refreshInfiniteLoadingEnabled()
refreshItemCachingEnabled()
refreshNotifyNewItemsEnabled()
@ -461,7 +446,6 @@ class AppSettingsService {
const val PERIODIC_REFRESH_MINUTES = "periodic_refresh_minutes"
const val HIDDEN_TAGS = "hidden_tags"
const val INFINITE_LOADING = "infinite_loading"