diff options
author | Allan Wang <me@allanwang.ca> | 2017-06-16 14:46:05 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2017-06-16 14:46:05 -0700 |
commit | bc5b6bd0a55bc81a5d7bd053c1c559b4cf822cb9 (patch) | |
tree | 290af53b6933000363c6eef915013a64b1fe1c23 /app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClient.kt | |
parent | 87e7e132a060e235d434a9ef44ae0363d7ef660b (diff) | |
download | frost-bc5b6bd0a55bc81a5d7bd053c1c559b4cf822cb9.tar.gz frost-bc5b6bd0a55bc81a5d7bd053c1c559b4cf822cb9.tar.bz2 frost-bc5b6bd0a55bc81a5d7bd053c1c559b4cf822cb9.zip |
Add a lot more theming
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.kt | 13 |
1 files changed, 0 insertions, 13 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 ac2af3cb..0fe3304a 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClient.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClient.kt @@ -64,7 +64,6 @@ open class FrostWebViewClient(val webCore: FrostWebViewCore) : WebViewClient() { Prefs.themeInjector, // JsAssets.CLICK_INTERCEPTOR, callback = { - L.d("Finished ${it.contentToString()}") refreshObservable.onNext(false) }) } @@ -87,22 +86,10 @@ open class FrostWebViewClient(val webCore: FrostWebViewCore) : WebViewClient() { return super.shouldOverrideUrlLoading(view, request) } - - override fun shouldInterceptRequest(view: WebView, request: WebResourceRequest?): WebResourceResponse? { if (request == null || !(request.url.host?.contains(FACEBOOK_COM) ?: false)) return super.shouldInterceptRequest(view, request) L.v("Url intercept ${request.url.path}") return super.shouldInterceptRequest(view, request) } - override fun onLoadResource(view: WebView, url: String) { - if (!url.contains(FACEBOOK_COM)) return super.onLoadResource(view, url) - L.v("Resource $url") -// FrostWebOverlay.values.forEach { -// if (url.contains(it.match)) -// L.d("Resource Loaded $it") -// } - super.onLoadResource(view, url) - } - }
\ No newline at end of file |