diff options
author | Allan Wang <me@allanwang.ca> | 2017-07-04 00:32:45 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2017-07-04 00:32:45 -0700 |
commit | 43885c6c063a76738ed7220aba619e47db7c4080 (patch) | |
tree | 6269af12c2656f81c54daad59b6b6aee5d4a1066 /app/src/main/kotlin/com/pitchedapps/frost/web/FrostChromeClient.kt | |
parent | ab98d536da8cd5e98132e125b81dde7bfcfa8056 (diff) | |
parent | 7a13673828f088c179763e8621a94e334319f226 (diff) | |
download | frost-43885c6c063a76738ed7220aba619e47db7c4080.tar.gz frost-43885c6c063a76738ed7220aba619e47db7c4080.tar.bz2 frost-43885c6c063a76738ed7220aba619e47db7c4080.zip |
fix update
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/web/FrostChromeClient.kt')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/web/FrostChromeClient.kt | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostChromeClient.kt b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostChromeClient.kt index 10499bfa..00e72cc7 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostChromeClient.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostChromeClient.kt @@ -1,10 +1,7 @@ package com.pitchedapps.frost.web import android.net.Uri -import android.webkit.ConsoleMessage -import android.webkit.ValueCallback -import android.webkit.WebChromeClient -import android.webkit.WebView +import android.webkit.* import com.pitchedapps.frost.utils.L import io.reactivex.subjects.BehaviorSubject import io.reactivex.subjects.Subject @@ -36,7 +33,7 @@ class FrostChromeClient(webCore: FrostWebViewCore) : WebChromeClient() { override fun onShowFileChooser(webView: WebView, filePathCallback: ValueCallback<Array<Uri>>?, fileChooserParams: FileChooserParams?): Boolean { L.d("On show file chooser") fileChooserParams?.apply { - L.d(filenameHint) + L.d(filenameHint ?: "hi") L.d("$mode") L.d(acceptTypes.contentToString()) } @@ -44,6 +41,10 @@ class FrostChromeClient(webCore: FrostWebViewCore) : WebChromeClient() { return super.onShowFileChooser(webView, filePathCallback, fileChooserParams) } + override fun onGeolocationPermissionsShowPrompt(origin: String, callback: GeolocationPermissions.Callback) { + super.onGeolocationPermissionsShowPrompt(origin, callback) + L.d("Geo prompt") + } }
\ No newline at end of file |