aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClient.kt
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-06-22 15:20:11 -0700
committerAllan Wang <me@allanwang.ca>2017-06-22 15:20:11 -0700
commit56678f8a76a4034ae8a63c92e49ba39cc54ee057 (patch)
tree7ebad2c45dc573d6e28824462478b6f9d2bf30ed /app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClient.kt
parent297e6704a6332c43408b8a3579ccfaccaa6591a1 (diff)
downloadfrost-56678f8a76a4034ae8a63c92e49ba39cc54ee057.tar.gz
frost-56678f8a76a4034ae8a63c92e49ba39cc54ee057.tar.bz2
frost-56678f8a76a4034ae8a63c92e49ba39cc54ee057.zip
Add notification filtering
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClient.kt')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClient.kt9
1 files changed, 4 insertions, 5 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClient.kt b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClient.kt
index a791363e..8b1eca1e 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClient.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClient.kt
@@ -12,10 +12,7 @@ import com.pitchedapps.frost.MainActivity
import com.pitchedapps.frost.SelectorActivity
import com.pitchedapps.frost.facebook.FACEBOOK_COM
import com.pitchedapps.frost.facebook.FbCookie
-import com.pitchedapps.frost.injectors.CssHider
-import com.pitchedapps.frost.injectors.JsActions
-import com.pitchedapps.frost.injectors.JsAssets
-import com.pitchedapps.frost.injectors.jsInject
+import com.pitchedapps.frost.injectors.*
import com.pitchedapps.frost.utils.L
import com.pitchedapps.frost.utils.Prefs
import com.pitchedapps.frost.utils.cookies
@@ -53,7 +50,9 @@ open class FrostWebViewClient(val webCore: FrostWebViewCore) : WebViewClient() {
refreshObservable.onNext(false)
return
}
- view.jsInject(JsActions.LOGIN_CHECK, JsAssets.HEADER_BADGES.maybe(webCore.baseEnum != null))
+ view.jsInject(JsActions.LOGIN_CHECK,
+ CssAssets.ROUND_ICONS.maybe(Prefs.showRoundedIcons),
+ JsAssets.HEADER_BADGES.maybe(webCore.baseEnum != null))
onPageFinishedActions(url)
}