diff options
author | Allan Wang <me@allanwang.ca> | 2019-12-27 00:28:33 -0800 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2019-12-27 00:28:33 -0800 |
commit | 44524ce6eea7b0d0998bbabc8d72ea8b43f55f02 (patch) | |
tree | bbcdc7a3d3c54048f838635280ac0d1a3f341133 /app/src/main/kotlin/com/pitchedapps/frost/utils | |
parent | 454872d712a0496e97b7138b30cc2fccac037b2f (diff) | |
download | frost-44524ce6eea7b0d0998bbabc8d72ea8b43f55f02.tar.gz frost-44524ce6eea7b0d0998bbabc8d72ea8b43f55f02.tar.bz2 frost-44524ce6eea7b0d0998bbabc8d72ea8b43f55f02.zip |
Add nav items programmatically
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/utils')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/utils/WebContextMenu.kt | 5 |
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 } } } |