diff options
Diffstat (limited to 'mediapicker/src/main/kotlin')
-rw-r--r-- | mediapicker/src/main/kotlin/ca/allanwang/kau/mediapicker/MediaPickerActivityBase.kt | 2 | ||||
-rw-r--r-- | mediapicker/src/main/kotlin/ca/allanwang/kau/mediapicker/MediaPickerCore.kt | 4 |
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] |