diff options
author | Allan Wang <me@allanwang.ca> | 2017-07-04 13:18:14 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2017-07-04 13:18:14 -0700 |
commit | fe4632c34a1d671503e0242a269865b884545e13 (patch) | |
tree | 790ef495b03529f6769732de36f4c09bd526394e /sample | |
parent | d024e8db464e8b0ba0133feed67896b854fd8b25 (diff) | |
download | kau-fe4632c34a1d671503e0242a269865b884545e13.tar.gz kau-fe4632c34a1d671503e0242a269865b884545e13.tar.bz2 kau-fe4632c34a1d671503e0242a269865b884545e13.zip |
Rename permission request
Diffstat (limited to 'sample')
-rw-r--r-- | sample/src/main/kotlin/ca/allanwang/kau/sample/AnimActivity.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sample/src/main/kotlin/ca/allanwang/kau/sample/AnimActivity.kt b/sample/src/main/kotlin/ca/allanwang/kau/sample/AnimActivity.kt index 8b8d784..b793f40 100644 --- a/sample/src/main/kotlin/ca/allanwang/kau/sample/AnimActivity.kt +++ b/sample/src/main/kotlin/ca/allanwang/kau/sample/AnimActivity.kt @@ -6,7 +6,7 @@ import ca.allanwang.kau.logging.KL import ca.allanwang.kau.permissions.PERMISSION_ACCESS_COARSE_LOCATION import ca.allanwang.kau.permissions.PERMISSION_ACCESS_FINE_LOCATION import ca.allanwang.kau.permissions.kauOnRequestPermissionsResult -import ca.allanwang.kau.permissions.requestPermissions +import ca.allanwang.kau.permissions.kauRequestPermissions import ca.allanwang.kau.utils.fullLinearRecycler import ca.allanwang.kau.utils.startActivitySlideOut import ca.allanwang.kau.utils.toast @@ -30,7 +30,7 @@ class AnimActivity : AppCompatActivity() { ).map{ PermissionCheckbox(it) }) adapter.withOnClickListener { _, _, item, _ -> KL.d("Perm Click") - requestPermissions(item.permission) { + kauRequestPermissions(item.permission) { granted, deniedPerm -> toast("${item.permission} enabled: $granted") adapter.notifyAdapterDataSetChanged() |