aboutsummaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-09-17 11:10:53 -0400
committerGitHub <noreply@github.com>2017-09-17 11:10:53 -0400
commit5ae7fd03522dd2c2843ff522314ab1d20f85d391 (patch)
tree6153082a465a1c5aba28783e1a69d6e18ec9a71c /app/src
parenta5ea7fd9606f2ae39d57d2463f093629d19b0200 (diff)
downloadfrost-5ae7fd03522dd2c2843ff522314ab1d20f85d391.tar.gz
frost-5ae7fd03522dd2c2843ff522314ab1d20f85d391.tar.bz2
frost-5ae7fd03522dd2c2843ff522314ab1d20f85d391.zip
Remove first production temp code (#303)
* Disable aggressive recents by default * Remove first production message
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/activities/MainActivity.kt11
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/utils/Prefs.kt2
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/utils/Showcase.kt4
3 files changed, 3 insertions, 14 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/activities/MainActivity.kt b/app/src/main/kotlin/com/pitchedapps/frost/activities/MainActivity.kt
index 2893afeb..dd8ed558 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/activities/MainActivity.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/activities/MainActivity.kt
@@ -125,17 +125,6 @@ class MainActivity : BaseActivity(), SearchWebView.SearchContract,
"Build type" to BuildConfig.BUILD_TYPE,
"Frost id" to Prefs.frostId)
}
- if (!Showcase.shownRelease && Prefs.installDate < 1503201600000L) {//08/20/2017
- materialDialogThemed {
- title("The time has come!")
- content("Frost for Facebook has been officially released. We thank you immensely for being with us from the start, and for allowing us to grow to what we are now." +
- "\nYou are now free to opt out of beta and get monthly stable updates, or stick with the beta channel and help squash bugs. It will also be amazing if you can give us a rating, and help others find this great open source alternative." +
- "\n\nRegards,\nAllan Wang")
- neutralText(R.string.kau_rate)
- onNeutral { _, _ -> startPlayStoreLink(R.string.play_store_package_id) }
- positiveText(R.string.kau_great)
- }
- }
}
setContentView(Prefs.mainActivityLayout.layoutRes)
setSupportActionBar(toolbar)
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/utils/Prefs.kt b/app/src/main/kotlin/com/pitchedapps/frost/utils/Prefs.kt
index 18ab874a..2897cf3d 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/utils/Prefs.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/utils/Prefs.kt
@@ -86,7 +86,7 @@ object Prefs : KPref() {
var feedSort: Int by kpref("feed_sort", FeedSort.DEFAULT.ordinal)
- var aggressiveRecents: Boolean by kpref("aggressive_recents", true)
+ var aggressiveRecents: Boolean by kpref("aggressive_recents", false)
var showRoundedIcons: Boolean by kpref("rounded_icons", true)
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 bed42ebc..a3812337 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/utils/Showcase.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/utils/Showcase.kt
@@ -18,7 +18,7 @@ object Showcase : KPref() {
//not a showcase but cannot be in the same file as Prefs
var experimentalDefault: Boolean by kpref("experimental_by_default", false)
-
- val shownRelease: Boolean by kprefSingle("shown_release")
+
+ override fun deleteKeys() = arrayOf("shown_release")
}