aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-08-29 17:19:01 -0400
committerAllan Wang <me@allanwang.ca>2017-08-30 12:24:19 -0400
commit275db52ea976c86569fb4daf230a59a6f2606899 (patch)
tree5fa26cecdcb91e8939bd25c02fb42536cb4277ce /core/src/main/kotlin
parentbf136d76b81835a44a0d9038b2a87806247296e8 (diff)
downloadkau-275db52ea976c86569fb4daf230a59a6f2606899.tar.gz
kau-275db52ea976c86569fb4daf230a59a6f2606899.tar.bz2
kau-275db52ea976c86569fb4daf230a59a6f2606899.zip
Fix/permissions (#44)
* Fix kpref item barriers * Revert and add text constraint * Update permission logging
Diffstat (limited to 'core/src/main/kotlin')
-rw-r--r--core/src/main/kotlin/ca/allanwang/kau/permissions/PermissionManager.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/src/main/kotlin/ca/allanwang/kau/permissions/PermissionManager.kt b/core/src/main/kotlin/ca/allanwang/kau/permissions/PermissionManager.kt
index 0c42574..5fe0ddf 100644
--- a/core/src/main/kotlin/ca/allanwang/kau/permissions/PermissionManager.kt
+++ b/core/src/main/kotlin/ca/allanwang/kau/permissions/PermissionManager.kt
@@ -53,12 +53,12 @@ internal object PermissionManager {
}
}
val activity = (context as? Activity) ?: throw KauException("Context is not an instance of an activity; cannot request permissions")
- KL.d("Requesting permissions ${permissions.contentToString()}")
+ KL.i("Requesting permissions ${permissions.contentToString()}")
ActivityCompat.requestPermissions(activity, permissions, 1)
}
fun onRequestPermissionsResult(context: Context, permissions: Array<out String>, grantResults: IntArray) {
- KL.d("On permission result: pending ${pendingResults.size}")
+ KL.i("On permission result: pending ${pendingResults.size}")
val count = Math.min(permissions.size, grantResults.size)
val iter = pendingResults.iterator()
while (iter.hasNext()) {
@@ -77,7 +77,7 @@ internal object PermissionManager {
}
requestPermissions(context, action.permissions.toTypedArray())
}
- KL.d("Post on permission result: pending ${pendingResults.size}")
+ KL.i("Post on permission result: pending ${pendingResults.size}")
}
} \ No newline at end of file