diff options
author | Allan Wang <me@allanwang.ca> | 2019-08-04 23:39:00 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2019-08-04 23:39:00 -0700 |
commit | 74e05199872e9b09678822378856e225a79028b4 (patch) | |
tree | 007a8e7f15b1fff60efe8f14a806521a88753c95 /app/src/main/kotlin/com/pitchedapps/frost/fragments/WebFragments.kt | |
parent | 2eacc8cb77b561eb1da11acb6ec8f620195fd24f (diff) | |
download | frost-74e05199872e9b09678822378856e225a79028b4.tar.gz frost-74e05199872e9b09678822378856e225a79028b4.tar.bz2 frost-74e05199872e9b09678822378856e225a79028b4.zip |
Add pref toggle
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/fragments/WebFragments.kt')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/fragments/WebFragments.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/fragments/WebFragments.kt b/app/src/main/kotlin/com/pitchedapps/frost/fragments/WebFragments.kt index 72367eaa..7c96235f 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/fragments/WebFragments.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/fragments/WebFragments.kt @@ -23,6 +23,7 @@ import com.pitchedapps.frost.contracts.MainFabContract import com.pitchedapps.frost.facebook.FbItem import com.pitchedapps.frost.injectors.JsActions import com.pitchedapps.frost.utils.L +import com.pitchedapps.frost.utils.Prefs import com.pitchedapps.frost.views.FrostWebView import com.pitchedapps.frost.web.FrostWebViewClient import com.pitchedapps.frost.web.FrostWebViewClientMenu @@ -51,7 +52,7 @@ class WebFragment : BaseFragment() { L.e { "Webview not found in fragment $baseEnum" } return super.updateFab(contract) } - if (baseEnum.isFeed) { + if (baseEnum.isFeed && Prefs.showCreateFab) { contract.showFab(GoogleMaterial.Icon.gmd_edit) { JsActions.CREATE_POST.inject(web) } |