From 5a6bf455cb2e550c18f94d8aeaaa91c2260cb75a Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Wed, 15 Nov 2017 02:47:13 -0500 Subject: Fix/bad overlay (#490) * Fix intent launching * Add some tests and update kotlin --- app/src/main/kotlin/com/pitchedapps/frost/web/FrostJSI.kt | 1 + 1 file changed, 1 insertion(+) (limited to 'app/src/main/kotlin/com/pitchedapps/frost/web/FrostJSI.kt') 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 9941c90c..6bdb459e 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostJSI.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostJSI.kt @@ -56,6 +56,7 @@ class FrostJSI(val webView: FrostWebViewCore) { @JavascriptInterface fun contextMenu(url: String, text: String?) { + if (!text.isIndependent) return //url will be formatted through webcontext webView.post { context.showWebContextMenu(WebContext(url, text)) } } -- cgit v1.2.3