diff options
author | Allan Wang <me@allanwang.ca> | 2017-07-07 03:26:55 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-07 03:26:55 -0400 |
commit | 6adfc496374eb88919f70a240eb15a726d2c18e0 (patch) | |
tree | 7cba34515bde7d840d37c50c397e948407776cc9 /app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewCore.kt | |
parent | bb70ed737d98abbd6164b66ac5bd667553b312bd (diff) | |
download | frost-6adfc496374eb88919f70a240eb15a726d2c18e0.tar.gz frost-6adfc496374eb88919f70a240eb15a726d2c18e0.tar.bz2 frost-6adfc496374eb88919f70a240eb15a726d2c18e0.zip |
Dev 1.1.6 (#33) - Fix play store listing, add sharing options, update css & jsv1.1.6
* Remove play store listing updates
* Fix up listing
* Combine url getters for overlay activity
* Begin building context menu programmatically
* Update css and js
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewCore.kt')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewCore.kt | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewCore.kt b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewCore.kt index c2c89b8a..76b04f23 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewCore.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewCore.kt @@ -54,24 +54,6 @@ class FrostWebViewCore @JvmOverloads constructor( titleObservable = BehaviorSubject.create<String>() } - @SuppressLint("SetJavaScriptEnabled") - fun setupWebview(url: String, enum: FbTab? = null) { - baseUrl = url - baseEnum = enum - with (settings) { - javaScriptEnabled = true - userAgentString = USER_AGENT_BASIC - allowFileAccess = true - defaultFontSize - } - setLayerType(View.LAYER_TYPE_HARDWARE, null) - frostWebClient = baseEnum?.webClient?.invoke(this) ?: FrostWebViewClient(this) - webViewClient = frostWebClient - webChromeClient = FrostChromeClient(this) - addJavascriptInterface(FrostJSI(context, this), "Frost") - setBackgroundColor(Color.TRANSPARENT) - } - fun loadUrl(url: String?, animate: Boolean) { if (url == null) return registerTransition(animate) |