diff options
author | Allan Wang <me@allanwang.ca> | 2019-08-05 00:38:25 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-05 00:38:25 -0700 |
commit | e5b3dbf51bfd63b230bedcaa67893dda82dd66e2 (patch) | |
tree | f95c92146c11984f05dd7deb84261c969cdacf33 /app/src/main/kotlin/com/pitchedapps/frost/utils | |
parent | ba2c62a502fa168525b9da9e5cb26edf1901d072 (diff) | |
parent | 1e582a31a92ac299db06f32e34be9f0ae6a5120b (diff) | |
download | frost-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.kt | 1 | ||||
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/utils/Prefs.kt | 2 |
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) |