diff options
author | Allan Wang <me@allanwang.ca> | 2017-10-13 20:32:00 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-13 20:32:00 -0400 |
commit | 4ad2d23ceccc23f8b11b0a5e712a1f08722611df (patch) | |
tree | 3cd9cb8217ac7125db56160ff20ba2c6cebe5e91 /app/src/main/kotlin/com/pitchedapps/frost/web | |
parent | 32ff6c3269abb81289160aa6f9f55c14369c99a3 (diff) | |
download | frost-4ad2d23ceccc23f8b11b0a5e712a1f08722611df.tar.gz frost-4ad2d23ceccc23f8b11b0a5e712a1f08722611df.tar.bz2 frost-4ad2d23ceccc23f8b11b0a5e712a1f08722611df.zip |
Revert/mediapicker (#407)
* Remove kau mediapicker
* Allow cancellation and clean up
* Fix up downloader
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/web')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/web/FrostChromeClients.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostChromeClients.kt b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostChromeClients.kt index b469659b..2fa80830 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostChromeClients.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostChromeClients.kt @@ -69,7 +69,7 @@ class FrostChromeClient(webCore: FrostWebViewCore) : WebChromeClient() { progressObservable.onNext(newProgress) } - override fun onShowFileChooser(webView: WebView, filePathCallback: ValueCallback<Array<Uri>>, fileChooserParams: FileChooserParams): Boolean { + override fun onShowFileChooser(webView: WebView, filePathCallback: ValueCallback<Array<Uri>?>, fileChooserParams: FileChooserParams): Boolean { activityContract?.openFileChooser(filePathCallback, fileChooserParams) ?: webView.frostSnackbar(R.string.file_chooser_not_found) return activityContract != null } |