aboutsummaryrefslogtreecommitdiff
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
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
-rw-r--r--core/src/main/kotlin/ca/allanwang/kau/permissions/PermissionManager.kt6
-rw-r--r--docs/Changelog.md1
-rw-r--r--gradle.properties2
3 files changed, 5 insertions, 4 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
diff --git a/docs/Changelog.md b/docs/Changelog.md
index fb7aeac..e20540f 100644
--- a/docs/Changelog.md
+++ b/docs/Changelog.md
@@ -2,6 +2,7 @@
## v3.3.2
* :kpref-activity: Add visibility toggle to Core contract. Items can override this to show/hide given preferences based on boolean callbacks.
+* :kpref-activity: Add width constraint for long text items
## v3.3.1
* :core: Open up all logger functions
diff --git a/gradle.properties b/gradle.properties
index baaf801..c0d946e 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -25,7 +25,7 @@ ANDROID_SUPPORT_LIBS=26.0.0
VERSION_NAME=3.3.3
-KOTLIN=1.1.4
+KOTLIN=1.1.4-2
ABOUT_LIBRARIES=5.9.7
ANKO=0.10.1
BLURRY=2.1.1