aboutsummaryrefslogtreecommitdiff
path: root/mediapicker/src/main/kotlin/ca
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/src/main/kotlin/ca
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/src/main/kotlin/ca')
-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
2 files changed, 3 insertions, 3 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]