aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/fragments/WebFragments.kt
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2020-02-23 17:50:22 -0800
committerGitHub <noreply@github.com>2020-02-23 17:50:22 -0800
commit654cc6b943177120dc1a0a22a0d68d5cbfde2b5e (patch)
tree3bba2feb0cf99ae222693a4d564d9acf624322e2 /app/src/main/kotlin/com/pitchedapps/frost/fragments/WebFragments.kt
parent4d5aaf541dbfa7d521ebbc5f011a642c83c4b9c5 (diff)
parent1686de0d71d687990ca6f0d4b621bc4d52dee146 (diff)
downloadfrost-654cc6b943177120dc1a0a22a0d68d5cbfde2b5e.tar.gz
frost-654cc6b943177120dc1a0a22a0d68d5cbfde2b5e.tar.bz2
frost-654cc6b943177120dc1a0a22a0d68d5cbfde2b5e.zip
Merge pull request #1647 from AllanWang/kpref
Remove stateful singletons
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.kt5
1 files changed, 2 insertions, 3 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 a6b4eae7..502c37fb 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/fragments/WebFragments.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/fragments/WebFragments.kt
@@ -23,7 +23,6 @@ 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
@@ -52,9 +51,9 @@ class WebFragment : BaseFragment() {
L.e { "Webview not found in fragment $baseEnum" }
return super.updateFab(contract)
}
- if (baseEnum.isFeed && Prefs.showCreateFab) {
+ if (baseEnum.isFeed && prefs.showCreateFab) {
contract.showFab(GoogleMaterial.Icon.gmd_edit) {
- JsActions.CREATE_POST.inject(web)
+ JsActions.CREATE_POST.inject(web, prefs)
}
return
}