aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/utils
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2019-08-05 00:38:25 -0700
committerGitHub <noreply@github.com>2019-08-05 00:38:25 -0700
commite5b3dbf51bfd63b230bedcaa67893dda82dd66e2 (patch)
treef95c92146c11984f05dd7deb84261c969cdacf33 /app/src/main/kotlin/com/pitchedapps/frost/utils
parentba2c62a502fa168525b9da9e5cb26edf1901d072 (diff)
parent1e582a31a92ac299db06f32e34be9f0ae6a5120b (diff)
downloadfrost-e5b3dbf51bfd63b230bedcaa67893dda82dd66e2.tar.gz
frost-e5b3dbf51bfd63b230bedcaa67893dda82dd66e2.tar.bz2
frost-e5b3dbf51bfd63b230bedcaa67893dda82dd66e2.zip
Merge pull request #1500 from AllanWang/toggle-main-fab
Allow disabling main fab
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/utils')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/utils/Const.kt1
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/utils/Prefs.kt2
2 files changed, 3 insertions, 0 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/utils/Const.kt b/app/src/main/kotlin/com/pitchedapps/frost/utils/Const.kt
index c878b6fb..daca9676 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/utils/Const.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/utils/Const.kt
@@ -31,5 +31,6 @@ const val REQUEST_REFRESH = 1 shl 7
const val REQUEST_TEXT_ZOOM = 1 shl 8
const val REQUEST_NAV = 1 shl 9
const val REQUEST_SEARCH = 1 shl 10
+const val REQUEST_FAB = 1 shl 11
const val MAIN_TIMEOUT_DURATION = 30 * 60 * 1000 // 30 min
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 0885109a..eb8e4b35 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/utils/Prefs.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/utils/Prefs.kt
@@ -189,6 +189,8 @@ object Prefs : KPref() {
var autoRefreshFeed: Boolean by kpref("auto_refresh_feed", false)
+ var showCreateFab: Boolean by kpref("show_create_fab", true)
+
inline val mainActivityLayout: MainActivityLayout
get() = MainActivityLayout(mainActivityLayoutType)