diff options
author | Allan Wang <me@allanwang.ca> | 2019-09-07 23:59:43 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2019-09-07 23:59:43 -0700 |
commit | ad0fcdcb581ee036ace2c55524069b2beef3603a (patch) | |
tree | 7fdc3c72fa496069013115cea37ec2fe680c020c /app/src/main/kotlin/com | |
parent | 3b457c0e5728d8643ba6b2d06329f6a7dead156f (diff) | |
download | frost-ad0fcdcb581ee036ace2c55524069b2beef3603a.tar.gz frost-ad0fcdcb581ee036ace2c55524069b2beef3603a.tar.bz2 frost-ad0fcdcb581ee036ace2c55524069b2beef3603a.zip |
Delete experimental by default options
Diffstat (limited to 'app/src/main/kotlin/com')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/settings/Experimental.kt | 7 | ||||
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/utils/Showcase.kt | 5 |
2 files changed, 1 insertions, 11 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/settings/Experimental.kt b/app/src/main/kotlin/com/pitchedapps/frost/settings/Experimental.kt index d7c405dc..a73dc1a4 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/settings/Experimental.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/settings/Experimental.kt @@ -34,13 +34,6 @@ fun SettingsActivity.getExperimentalPrefs(): KPrefAdapterBuilder.() -> Unit = { descRes = R.string.experimental_disclaimer_info } - checkbox( - R.string.experimental_by_default, - Showcase::experimentalDefault, - { Showcase.experimentalDefault = it }) { - descRes = R.string.experimental_by_default_desc - } - // Experimental content starts here ------------------ checkbox(R.string.auth_requests, Prefs::authRequests, { Prefs.authRequests = it }) { diff --git a/app/src/main/kotlin/com/pitchedapps/frost/utils/Showcase.kt b/app/src/main/kotlin/com/pitchedapps/frost/utils/Showcase.kt index df48bfbc..f69af40b 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/utils/Showcase.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/utils/Showcase.kt @@ -30,8 +30,5 @@ object Showcase : KPref() { val intro: Boolean by kprefSingle("intro_pages") - //not a showcase but cannot be in the same file as Prefs - var experimentalDefault: Boolean by kpref("experimental_by_default", false) - - override fun deleteKeys() = arrayOf("shown_release") + override fun deleteKeys() = arrayOf("shown_release", "experimental_by_default") } |