mirror of
https://github.com/kalarina-bit/Sparkledns.git
synced 2026-11-22 15:46:09 +00:00
Independent DoH servers and a server list synced from the repository
This commit is contained in:
@@ -5,6 +5,10 @@ import android.content.Context
|
||||
class Prefs(context: Context) {
|
||||
private val sp = context.applicationContext.getSharedPreferences("doh", Context.MODE_PRIVATE)
|
||||
|
||||
init {
|
||||
ServerList.ensureLoaded(context.applicationContext)
|
||||
}
|
||||
|
||||
var providerId: String
|
||||
get() = sp.getString(KEY_PROVIDER, null) ?: Providers.default.id
|
||||
set(value) = sp.edit().putString(KEY_PROVIDER, value).apply()
|
||||
|
||||
Reference in New Issue
Block a user