From 275db52ea976c86569fb4daf230a59a6f2606899 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Tue, 29 Aug 2017 17:19:01 -0400 Subject: Fix/permissions (#44) * Fix kpref item barriers * Revert and add text constraint * Update permission logging --- .../main/kotlin/ca/allanwang/kau/permissions/PermissionManager.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core') 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, 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 -- cgit v1.2.3