aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/web/FrostChromeClients.kt
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2019-08-06 00:52:23 -0700
committerGitHub <noreply@github.com>2019-08-06 00:52:23 -0700
commitd500d1dd6e05c6128dcb15fe8e15acb2aaf979cd (patch)
tree98caedbfd7a6b154ca6401c6a389cb5a08bdee3d /app/src/main/kotlin/com/pitchedapps/frost/web/FrostChromeClients.kt
parentc78e670c2ac74e0c1b1fda4259cdcf69949e0d95 (diff)
parent59a462e6f23d046236bc20e6ac9c9464ed670f58 (diff)
downloadfrost-d500d1dd6e05c6128dcb15fe8e15acb2aaf979cd.tar.gz
frost-d500d1dd6e05c6128dcb15fe8e15acb2aaf979cd.tar.bz2
frost-d500d1dd6e05c6128dcb15fe8e15acb2aaf979cd.zip
Merge pull request #1503 from AllanWang/format
Format
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/web/FrostChromeClients.kt')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/web/FrostChromeClients.kt5
1 files changed, 4 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 da90e7e5..9577aeb0 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostChromeClients.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostChromeClients.kt
@@ -73,7 +73,10 @@ class FrostChromeClient(web: FrostWebView) : WebChromeClient() {
return activity != null
}
- override fun onGeolocationPermissionsShowPrompt(origin: String, callback: GeolocationPermissions.Callback) {
+ override fun onGeolocationPermissionsShowPrompt(
+ origin: String,
+ callback: GeolocationPermissions.Callback
+ ) {
L.i { "Requesting geolocation" }
context.kauRequestPermissions(PERMISSION_ACCESS_FINE_LOCATION) { granted, _ ->
L.i { "Geolocation response received; ${if (granted) "granted" else "denied"}" }