diff options
author | Allan Wang <me@allanwang.ca> | 2019-12-30 19:13:04 -0800 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2019-12-30 19:13:04 -0800 |
commit | 058020e7cc412a2a17dec30edb754be7e1415abd (patch) | |
tree | 19f5889afb3cbb451102fcc6d65872ae00f0423a /sample/src/main/kotlin/ca/allanwang/kau/sample/PermissionCheckbox.kt | |
parent | 7a007420e74e6bd4e08bde123e6e163eefc18b92 (diff) | |
download | kau-058020e7cc412a2a17dec30edb754be7e1415abd.tar.gz kau-058020e7cc412a2a17dec30edb754be7e1415abd.tar.bz2 kau-058020e7cc412a2a17dec30edb754be7e1415abd.zip |
Update CircleView and changelog
Diffstat (limited to 'sample/src/main/kotlin/ca/allanwang/kau/sample/PermissionCheckbox.kt')
-rw-r--r-- | sample/src/main/kotlin/ca/allanwang/kau/sample/PermissionCheckbox.kt | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sample/src/main/kotlin/ca/allanwang/kau/sample/PermissionCheckbox.kt b/sample/src/main/kotlin/ca/allanwang/kau/sample/PermissionCheckbox.kt index 40ad663..50cfe69 100644 --- a/sample/src/main/kotlin/ca/allanwang/kau/sample/PermissionCheckbox.kt +++ b/sample/src/main/kotlin/ca/allanwang/kau/sample/PermissionCheckbox.kt @@ -15,7 +15,6 @@ */ package ca.allanwang.kau.sample -import android.Manifest import android.view.LayoutInflater import android.view.View import android.view.ViewGroup @@ -98,7 +97,7 @@ class PermissionCheckboxViewBinding( item: PermissionCheckboxViewBinding ) { KL.d { "Perm Click" } - with (v.context) { + with(v.context) { kauRequestPermissions(item.data.permission) { granted, _ -> toast("${item.data.permission} enabled: $granted") fastAdapter.notifyAdapterDataSetChanged() @@ -107,4 +106,4 @@ class PermissionCheckboxViewBinding( } } } -}
\ No newline at end of file +} |