aboutsummaryrefslogtreecommitdiff
path: root/mediapicker/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'mediapicker/src/main')
-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