aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/web/FrostJSI.kt
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2021-01-12 23:07:02 -0800
committerAllan Wang <me@allanwang.ca>2021-01-12 23:07:02 -0800
commit5aec10ce0fe191d78399869074c7e118256848ea (patch)
treeaff3d79f003ef1200a36b810a336d6947e69114d /app/src/main/kotlin/com/pitchedapps/frost/web/FrostJSI.kt
parentce9e44a742638eaaad5833f39d394535ddfd67a2 (diff)
downloadfrost-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/FrostJSI.kt')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/web/FrostJSI.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostJSI.kt b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostJSI.kt
index 40a048af..4e8e8cee 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostJSI.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostJSI.kt
@@ -97,7 +97,7 @@ class FrostJSI(val web: FrostWebView) {
fun longClick(start: Boolean) {
activity?.contentBinding?.viewpager?.enableSwipe = !start
if (web.frostWebClient.urlSupportsRefresh) {
- web.parent.swipeEnabled = !start
+ web.parent.swipeDisabledByAction = start
}
}
@@ -109,7 +109,7 @@ class FrostJSI(val web: FrostWebView) {
if (!web.frostWebClient.urlSupportsRefresh) {
return
}
- web.parent.swipeEnabled = !disable
+ web.parent.swipeDisabledByAction = disable
if (disable) {
// locked onto an input field; ensure content is visible
(context as? MainActivityContract)?.collapseAppBar()