mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-19 04:49:17 +01:00
Hide incomplete NSFW source labelling settings
This commit is contained in:
parent
a3bad75899
commit
a3b1690d38
@ -2,12 +2,8 @@ package eu.kanade.tachiyomi.ui.setting
|
|||||||
|
|
||||||
import androidx.preference.PreferenceScreen
|
import androidx.preference.PreferenceScreen
|
||||||
import eu.kanade.tachiyomi.R
|
import eu.kanade.tachiyomi.R
|
||||||
import eu.kanade.tachiyomi.data.preference.PreferenceValues
|
|
||||||
import eu.kanade.tachiyomi.extension.ExtensionUpdateJob
|
import eu.kanade.tachiyomi.extension.ExtensionUpdateJob
|
||||||
import eu.kanade.tachiyomi.util.preference.defaultValue
|
import eu.kanade.tachiyomi.util.preference.defaultValue
|
||||||
import eu.kanade.tachiyomi.util.preference.entriesRes
|
|
||||||
import eu.kanade.tachiyomi.util.preference.infoPreference
|
|
||||||
import eu.kanade.tachiyomi.util.preference.listPreference
|
|
||||||
import eu.kanade.tachiyomi.util.preference.onChange
|
import eu.kanade.tachiyomi.util.preference.onChange
|
||||||
import eu.kanade.tachiyomi.util.preference.preferenceCategory
|
import eu.kanade.tachiyomi.util.preference.preferenceCategory
|
||||||
import eu.kanade.tachiyomi.util.preference.switchPreference
|
import eu.kanade.tachiyomi.util.preference.switchPreference
|
||||||
@ -45,27 +41,27 @@ class SettingsBrowseController : SettingsController() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
preferenceCategory {
|
// preferenceCategory {
|
||||||
titleRes = R.string.pref_category_nsfw_content
|
// titleRes = R.string.pref_category_nsfw_content
|
||||||
|
//
|
||||||
listPreference {
|
// listPreference {
|
||||||
key = Keys.allowNsfwSource
|
// key = Keys.allowNsfwSource
|
||||||
titleRes = R.string.pref_allow_nsfw_sources
|
// titleRes = R.string.pref_allow_nsfw_sources
|
||||||
entriesRes = arrayOf(
|
// entriesRes = arrayOf(
|
||||||
R.string.pref_allow_nsfw_sources_allowed,
|
// R.string.pref_allow_nsfw_sources_allowed,
|
||||||
R.string.pref_allow_nsfw_sources_allowed_multisource,
|
// R.string.pref_allow_nsfw_sources_allowed_multisource,
|
||||||
R.string.pref_allow_nsfw_sources_blocked
|
// R.string.pref_allow_nsfw_sources_blocked
|
||||||
)
|
// )
|
||||||
entryValues = arrayOf(
|
// entryValues = arrayOf(
|
||||||
PreferenceValues.NsfwAllowance.ALLOWED.name,
|
// PreferenceValues.NsfwAllowance.ALLOWED.name,
|
||||||
PreferenceValues.NsfwAllowance.PARTIAL.name,
|
// PreferenceValues.NsfwAllowance.PARTIAL.name,
|
||||||
PreferenceValues.NsfwAllowance.BLOCKED.name
|
// PreferenceValues.NsfwAllowance.BLOCKED.name
|
||||||
)
|
// )
|
||||||
defaultValue = PreferenceValues.NsfwAllowance.ALLOWED.name
|
// defaultValue = PreferenceValues.NsfwAllowance.ALLOWED.name
|
||||||
summary = "%s"
|
// summary = "%s"
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
infoPreference(R.string.parental_controls_info)
|
// infoPreference(R.string.parental_controls_info)
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user