diff options
author | Allan Wang <me@allanwang.ca> | 2017-11-15 03:48:56 -0500 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2017-11-15 03:48:56 -0500 |
commit | 0b60ad9b70be8cac67913c9e6438a5bb812cbd37 (patch) | |
tree | 5ec577af73537aa598ed6d5f8196fadf1b897933 /app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt | |
parent | 5a6bf455cb2e550c18f94d8aeaaa91c2260cb75a (diff) | |
download | frost-0b60ad9b70be8cac67913c9e6438a5bb812cbd37.tar.gz frost-0b60ad9b70be8cac67913c9e6438a5bb812cbd37.tar.bz2 frost-0b60ad9b70be8cac67913c9e6438a5bb812cbd37.zip |
Fix some logic
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt index 67881ada..22b6c0b6 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt @@ -153,7 +153,7 @@ open class FrostWebViewClient(val webCore: FrostWebViewCore) : BaseWebViewClient if (path.startsWith("/composer/")) return launchRequest(request) if (url.contains("scontent-sea1-1.xx.fbcdn.net") && (path.endsWith(".jpg") || path.endsWith(".png"))) return launchImage(url) - if (Prefs.linksInDefaultApp && view.context.resolveActivityForUri(request.url)) return true + if (Prefs.linksInDefaultApp && !url.isFacebookUrl && view.context.resolveActivityForUri(request.url)) return true return super.shouldOverrideUrlLoading(view, request) } |