diff options
author | Allan Wang <me@allanwang.ca> | 2019-06-13 01:14:21 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2019-06-13 01:14:21 -0700 |
commit | 01058912580a3ecfe77eaf6af209e1c46a97f2d7 (patch) | |
tree | 912e9cf5cd089a444d5cda0a032f933f2aa93918 /mediapicker/src/main | |
parent | 423cad016753a795e9cb75534d172f562e4326c1 (diff) | |
download | kau-01058912580a3ecfe77eaf6af209e1c46a97f2d7.tar.gz kau-01058912580a3ecfe77eaf6af209e1c46a97f2d7.tar.bz2 kau-01058912580a3ecfe77eaf6af209e1c46a97f2d7.zip |
Initial fastadapter update
Diffstat (limited to 'mediapicker/src/main')
-rw-r--r-- | mediapicker/src/main/kotlin/ca/allanwang/kau/mediapicker/MediaPickerCore.kt | 4 |
1 files changed, 2 insertions, 2 deletions
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 ae1d9d6..bf681eb 100644 --- a/mediapicker/src/main/kotlin/ca/allanwang/kau/mediapicker/MediaPickerCore.kt +++ b/mediapicker/src/main/kotlin/ca/allanwang/kau/mediapicker/MediaPickerCore.kt @@ -64,7 +64,7 @@ import java.io.File * * Container for the main logic behind the both pickers */ -abstract class MediaPickerCore<T : IItem<*, *>>( +abstract class MediaPickerCore<T : IItem<*>>( val mediaType: MediaType, val mediaActions: List<MediaAction> ) : KauBaseActivity(), LoaderManager.LoaderCallbacks<Cursor> { @@ -141,7 +141,7 @@ abstract class MediaPickerCore<T : IItem<*, *>>( fun initializeRecycler(recycler: RecyclerView) { val adapterHeader = ItemAdapter<MediaActionItem>() - val fulladapter = fastAdapter<IItem<*, *>>(adapterHeader, adapter) + val fulladapter = fastAdapter<IItem<*>>(adapterHeader, adapter) adapterHeader.add(mediaActions.map { MediaActionItem(it, mediaType) }) recycler.apply { val manager = object : GridLayoutManager(context, computeColumnCount(context)) { |