From ce9e44a742638eaaad5833f39d394535ddfd67a2 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Tue, 12 Jan 2021 22:32:23 -0800 Subject: Disable swipe refresh for messenger --- app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3