aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewCore.kt
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-07-03 18:40:14 -0400
committerGitHub <noreply@github.com>2017-07-03 18:40:14 -0400
commit8edd98fcee1506177e61ebeb31af35c7f3fb48c8 (patch)
treefe264b22f3c57e8888a372ab0ab1fbf2b0496e76 /app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewCore.kt
parent01250f93826b24bd53b46426999e9cdea17fecd8 (diff)
downloadfrost-8edd98fcee1506177e61ebeb31af35c7f3fb48c8.tar.gz
frost-8edd98fcee1506177e61ebeb31af35c7f3fb48c8.tar.bz2
frost-8edd98fcee1506177e61ebeb31af35c7f3fb48c8.zip
Dev (#13)
* Allow file access * Log all to phone * Rework billing logic
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.kt8
1 files changed, 5 insertions, 3 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 c2a53837..a0ffa3b5 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewCore.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewCore.kt
@@ -58,9 +58,11 @@ class FrostWebViewCore @JvmOverloads constructor(
fun setupWebview(url: String, enum: FbTab? = null) {
baseUrl = url
baseEnum = enum
- settings.javaScriptEnabled = true
- settings.userAgentString = USER_AGENT_BASIC
-// settings.domStorageEnabled = true
+ with (settings) {
+ javaScriptEnabled = true
+ userAgentString = USER_AGENT_BASIC
+ allowFileAccess = true
+ }
setLayerType(View.LAYER_TYPE_HARDWARE, null)
frostWebClient = baseEnum?.webClient?.invoke(this) ?: FrostWebViewClient(this)
webViewClient = frostWebClient