diff options
author | Allan Wang <me@allanwang.ca> | 2018-02-02 21:05:26 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-02 21:05:26 -0500 |
commit | d68ea6d7eb8cadf687308fa3204386b79df0556b (patch) | |
tree | 0797c5c53e09b6af5eb996ab42e1f814ee615561 /app/src/main/kotlin/com/pitchedapps/frost/facebook/FbItem.kt | |
parent | f36e0fff23abb5c892b40d1a9fb70776078976c4 (diff) | |
download | frost-1.8.1.tar.gz frost-1.8.1.tar.bz2 frost-1.8.1.zip |
Feature/post (#696)v1.8.1
* Reorder final override
* Add initial fab bindings
* Update scripts
* Optimize and use js header hider
* Remove old header hider
* Use method for generating clicker
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/facebook/FbItem.kt')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/facebook/FbItem.kt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/facebook/FbItem.kt b/app/src/main/kotlin/com/pitchedapps/frost/facebook/FbItem.kt index 462fae79..a02cbe59 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/facebook/FbItem.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/facebook/FbItem.kt @@ -45,6 +45,12 @@ enum class FbItem( val url = "$FB_URL_BASE$relativeUrl" + val isFeed: Boolean + get() = when (this) { + FEED, FEED_MOST_RECENT, FEED_TOP_STORIES -> true + else -> false + } + override val bundleContract: EnumBundleCompanion<FbItem> get() = Companion |