aboutsummaryrefslogtreecommitdiff
path: root/sample/src/main/kotlin/ca/allanwang
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2019-12-30 19:13:04 -0800
committerAllan Wang <me@allanwang.ca>2019-12-30 19:13:04 -0800
commit058020e7cc412a2a17dec30edb754be7e1415abd (patch)
tree19f5889afb3cbb451102fcc6d65872ae00f0423a /sample/src/main/kotlin/ca/allanwang
parent7a007420e74e6bd4e08bde123e6e163eefc18b92 (diff)
downloadkau-058020e7cc412a2a17dec30edb754be7e1415abd.tar.gz
kau-058020e7cc412a2a17dec30edb754be7e1415abd.tar.bz2
kau-058020e7cc412a2a17dec30edb754be7e1415abd.zip
Update CircleView and changelog
Diffstat (limited to 'sample/src/main/kotlin/ca/allanwang')
-rw-r--r--sample/src/main/kotlin/ca/allanwang/kau/sample/AnimActivity.kt4
-rw-r--r--sample/src/main/kotlin/ca/allanwang/kau/sample/PermissionCheckbox.kt5
2 files changed, 2 insertions, 7 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 50b3cf3..a472f09 100644
--- a/sample/src/main/kotlin/ca/allanwang/kau/sample/AnimActivity.kt
+++ b/sample/src/main/kotlin/ca/allanwang/kau/sample/AnimActivity.kt
@@ -18,20 +18,16 @@ package ca.allanwang.kau.sample
import android.os.Bundle
import ca.allanwang.kau.adapters.SingleFastAdapter
import ca.allanwang.kau.internal.KauBaseActivity
-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.PERMISSION_CAMERA
-import ca.allanwang.kau.permissions.kauRequestPermissions
import ca.allanwang.kau.swipe.SWIPE_EDGE_LEFT
import ca.allanwang.kau.swipe.kauSwipeOnCreate
import ca.allanwang.kau.swipe.kauSwipeOnDestroy
import ca.allanwang.kau.utils.fullLinearRecycler
import ca.allanwang.kau.utils.startActivity
-import ca.allanwang.kau.utils.toast
import ca.allanwang.kau.utils.withAlpha
import ca.allanwang.kau.utils.withSlideOut
-import com.mikepenz.fastadapter.adapters.FastItemAdapter
/**
* Created by Allan Wang on 2017-06-12.
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
+}