aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/utils/WebContextMenu.kt
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2019-12-29 15:50:22 -0800
committerGitHub <noreply@github.com>2019-12-29 15:50:22 -0800
commit0828e8fceec86333f81d5b8cf204184ecc58f0ef (patch)
tree52c2bef109a430aac85c03494a5fd4515e4455e5 /app/src/main/kotlin/com/pitchedapps/frost/utils/WebContextMenu.kt
parentee68ef07ca0f0afd00bfe32f7e7dbba8ef6a6ae2 (diff)
parent597c884d88b8716d49e0abb00674ce44699df08b (diff)
downloadfrost-0828e8fceec86333f81d5b8cf204184ecc58f0ef.tar.gz
frost-0828e8fceec86333f81d5b8cf204184ecc58f0ef.tar.bz2
frost-0828e8fceec86333f81d5b8cf204184ecc58f0ef.zip
Merge pull request #1601 from AllanWang/nav-rewrite
Nav rewrite
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/utils/WebContextMenu.kt')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/utils/WebContextMenu.kt5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/utils/WebContextMenu.kt b/app/src/main/kotlin/com/pitchedapps/frost/utils/WebContextMenu.kt
index 9089d891..becc9f02 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/utils/WebContextMenu.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/utils/WebContextMenu.kt
@@ -47,7 +47,10 @@ fun Context.showWebContextMenu(wc: WebContext) {
}
onDismiss {
// showing the dialog interrupts the touch down event, so we must ensure that the viewpager's swipe is enabled
- (this@showWebContextMenu as? MainActivity)?.viewPager?.enableSwipe = true
+ (this@showWebContextMenu as? MainActivity)
+ ?.contentBinding
+ ?.viewpager
+ ?.enableSwipe = true
}
}
}