From fe4632c34a1d671503e0242a269865b884545e13 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Tue, 4 Jul 2017 13:18:14 -0700 Subject: Rename permission request --- sample/src/main/kotlin/ca/allanwang/kau/sample/AnimActivity.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sample/src') 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() -- cgit v1.2.3