aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2021-01-12 22:32:23 -0800
committerAllan Wang <me@allanwang.ca>2021-01-12 22:32:23 -0800
commitce9e44a742638eaaad5833f39d394535ddfd67a2 (patch)
treedfc733feca96cb412b9d12c52d5ae112cc0513c4 /app
parentc0eeb83cfc8e5021f3a7904d8cc7b33d07cd92ea (diff)
downloadfrost-ce9e44a742638eaaad5833f39d394535ddfd67a2.tar.gz
frost-ce9e44a742638eaaad5833f39d394535ddfd67a2.tar.bz2
frost-ce9e44a742638eaaad5833f39d394535ddfd67a2.zip
Disable swipe refresh for messenger
Diffstat (limited to 'app')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt1
1 files changed, 1 insertions, 0 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 7a7bc293..99473a11 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt
@@ -95,6 +95,7 @@ open class FrostWebViewClient(val web: FrostWebView) : BaseWebViewClient() {
private fun urlSupportsRefresh(url: String?): Boolean {
if (url == null) return false
+ if (url.isMessengerUrl) return false
if (!url.isFacebookUrl) return true
if (url.contains("soft=composer")) return false
if (url.contains("sharer.php") || url.contains("sharer-dialog.php")) return false