diff options
author | Allan Wang <me@allanwang.ca> | 2021-01-12 23:07:02 -0800 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2021-01-12 23:07:02 -0800 |
commit | 5aec10ce0fe191d78399869074c7e118256848ea (patch) | |
tree | aff3d79f003ef1200a36b810a336d6947e69114d /app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt | |
parent | ce9e44a742638eaaad5833f39d394535ddfd67a2 (diff) | |
download | frost-5aec10ce0fe191d78399869074c7e118256848ea.tar.gz frost-5aec10ce0fe191d78399869074c7e118256848ea.tar.bz2 frost-5aec10ce0fe191d78399869074c7e118256848ea.zip |
Fix swipe disable logic and disable for messenger
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 99473a11..8ec5f975 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt @@ -85,7 +85,7 @@ open class FrostWebViewClient(val web: FrostWebView) : BaseWebViewClient() { override fun doUpdateVisitedHistory(view: WebView, url: String?, isReload: Boolean) { super.doUpdateVisitedHistory(view, url, isReload) urlSupportsRefresh = urlSupportsRefresh(url) - web.parent.swipeEnabled = urlSupportsRefresh + web.parent.swipeAllowedByPage = urlSupportsRefresh view.jsInject( JsAssets.AUTO_RESIZE_TEXTAREA.maybe(prefs.autoExpandTextBox), prefs = prefs |