Add advanced option for DNS over HTTPS via Cloudflare (closes #3377)

This commit is contained in:
arkon
2020-06-23 22:42:53 -04:00
parent 3b4b1185e2
commit 3645d19135
6 changed files with 58 additions and 10 deletions

View File

@@ -155,6 +155,8 @@ object PreferenceKeys {
const val searchPinnedSourcesOnly = "search_pinned_sources_only"
const val enableDoh = "enable_doh"
fun trackUsername(syncId: Int) = "pref_mangasync_username_$syncId"
fun trackPassword(syncId: Int) = "pref_mangasync_password_$syncId"

View File

@@ -234,4 +234,6 @@ class PreferencesHelper(val context: Context) {
fun migrateFlags() = flowPrefs.getInt("migrate_flags", Int.MAX_VALUE)
fun trustedSignatures() = flowPrefs.getStringSet("trusted_signatures", emptySet())
fun enableDoh() = prefs.getBoolean(Keys.enableDoh, false)
}