aboutsummaryrefslogtreecommitdiff
path: root/mediapicker
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2018-03-11 15:09:54 -0400
committerGitHub <noreply@github.com>2018-03-11 15:09:54 -0400
commite97db5c6529b1e12effc7141f277bd41d3fb580a (patch)
tree25c04d522cd423551295a7e1a51327fd2268767a /mediapicker
parent0e402b4e745a0017b5d21ee0b3676099eb477d28 (diff)
downloadkau-e97db5c6529b1e12effc7141f277bd41d3fb580a.tar.gz
kau-e97db5c6529b1e12effc7141f277bd41d3fb580a.tar.bz2
kau-e97db5c6529b1e12effc7141f277bd41d3fb580a.zip
Update versions (#142)
* Update versions * Update nullability * Update nullability 2 * Update changelog
Diffstat (limited to 'mediapicker')
-rw-r--r--mediapicker/src/main/kotlin/ca/allanwang/kau/mediapicker/MediaPickerActivityBase.kt2
-rw-r--r--mediapicker/src/main/kotlin/ca/allanwang/kau/mediapicker/MediaPickerCore.kt4
-rw-r--r--mediapicker/src/main/res-public/values/public.xml4
3 files changed, 5 insertions, 5 deletions
diff --git a/mediapicker/src/main/kotlin/ca/allanwang/kau/mediapicker/MediaPickerActivityBase.kt b/mediapicker/src/main/kotlin/ca/allanwang/kau/mediapicker/MediaPickerActivityBase.kt
index 464c85e..2adabf9 100644
--- a/mediapicker/src/main/kotlin/ca/allanwang/kau/mediapicker/MediaPickerActivityBase.kt
+++ b/mediapicker/src/main/kotlin/ca/allanwang/kau/mediapicker/MediaPickerActivityBase.kt
@@ -88,7 +88,7 @@ abstract class MediaPickerActivityBase(
params.scrollFlags = 0
}
- override fun onLoadFinished(loader: Loader<Cursor>?, data: Cursor?) {
+ override fun onLoadFinished(loader: Loader<Cursor>, data: Cursor?) {
super.onLoadFinished(loader, data)
setToolbarScrollable((recycler.layoutManager as LinearLayoutManager)
.findLastCompletelyVisibleItemPosition() < adapter.adapterItemCount - 1)
diff --git a/mediapicker/src/main/kotlin/ca/allanwang/kau/mediapicker/MediaPickerCore.kt b/mediapicker/src/main/kotlin/ca/allanwang/kau/mediapicker/MediaPickerCore.kt
index b5fe11f..6e38d14 100644
--- a/mediapicker/src/main/kotlin/ca/allanwang/kau/mediapicker/MediaPickerCore.kt
+++ b/mediapicker/src/main/kotlin/ca/allanwang/kau/mediapicker/MediaPickerCore.kt
@@ -164,7 +164,7 @@ abstract class MediaPickerCore<T : IItem<*, *>>(
}
}
- override fun onLoadFinished(loader: Loader<Cursor>?, data: Cursor?) {
+ override fun onLoadFinished(loader: Loader<Cursor>, data: Cursor?) {
reset()
if (data == null || !data.moveToFirst()) {
toast(R.string.kau_no_items_found)
@@ -199,7 +199,7 @@ abstract class MediaPickerCore<T : IItem<*, *>>(
abstract fun converter(model: MediaModel): T
- override fun onLoaderReset(loader: Loader<Cursor>?) = reset()
+ override fun onLoaderReset(loader: Loader<Cursor>) = reset()
/**
* Called at the end of [onLoadFinished]
diff --git a/mediapicker/src/main/res-public/values/public.xml b/mediapicker/src/main/res-public/values/public.xml
index ac608bb..3c6f0fa 100644
--- a/mediapicker/src/main/res-public/values/public.xml
+++ b/mediapicker/src/main/res-public/values/public.xml
@@ -1,7 +1,7 @@
<resources xmlns:tools='http://schemas.android.com/tools' tools:ignore='ResourceName'>
<!-- AUTO-GENERATED FILE. DO NOT MODIFY. public.xml is generated by the generatepublicxml gradle task -->
- <public name='kau_blurred_image_selection_overlay' type='color' />
- <public name='kau_image_minimum_size' type='dimen' />
<public name='Kau.MediaPicker' type='style' />
<public name='Kau.MediaPicker.Overlay' type='style' />
+ <public name='kau_blurred_image_selection_overlay' type='color' />
+ <public name='kau_image_minimum_size' type='dimen' />
</resources> \ No newline at end of file