aboutsummaryrefslogtreecommitdiff
path: root/sample/src/main
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
parent7a007420e74e6bd4e08bde123e6e163eefc18b92 (diff)
downloadkau-058020e7cc412a2a17dec30edb754be7e1415abd.tar.gz
kau-058020e7cc412a2a17dec30edb754be7e1415abd.tar.bz2
kau-058020e7cc412a2a17dec30edb754be7e1415abd.zip
Update CircleView and changelog
Diffstat (limited to 'sample/src/main')
-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
-rw-r--r--sample/src/main/res/xml/kau_changelog.xml2
3 files changed, 3 insertions, 8 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
+}
diff --git a/sample/src/main/res/xml/kau_changelog.xml b/sample/src/main/res/xml/kau_changelog.xml
index d8c167f..2907e43 100644
--- a/sample/src/main/res/xml/kau_changelog.xml
+++ b/sample/src/main/res/xml/kau_changelog.xml
@@ -8,13 +8,13 @@
<version title="v5.2.0" />
<item text=":about: Migrate about libraries to v7.x.x" />
+ <item text=":color: Draw CircleView in foreground instead of background" />
<item text=":core: Migrate iconics to v4.x.x" />
<item text=":core: Automatically switch light mode for navigationBarColor and statusBarColor" />
<item text=":core: Remove statusBarLight toggle" />
<item text=":core: Remove kau_status_bar_height; height should be found programmatically" />
<item text=":fastadapter: Migrate fastadapter to v4.x.x" />
<item text=":fastadapter-viewbinding: Create helper items for ViewBinding" />
- <item text="" />
<version title="v5.1.0" />
<item text=":adapter: Moved fastadapter elements to new module, :fastadapter:. To migrate, simply rename the dependency. If you don't use fast adapter, no changes are necessary" />