aboutsummaryrefslogtreecommitdiff
path: root/fastadapter/src/main/kotlin/ca/allanwang/kau/adapters/AdapterUtils.kt
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2020-07-18 17:08:50 -0700
committerAllan Wang <me@allanwang.ca>2020-07-18 17:08:50 -0700
commit33ad3ab71a06d6505c37b1e23f7d9a82db243c84 (patch)
treeda10027f50ca787b3caa6db74f8786133f44cf19 /fastadapter/src/main/kotlin/ca/allanwang/kau/adapters/AdapterUtils.kt
parent3ebee97ef6e1341b7d5538b405c045eaaca971c4 (diff)
downloadkau-33ad3ab71a06d6505c37b1e23f7d9a82db243c84.tar.gz
kau-33ad3ab71a06d6505c37b1e23f7d9a82db243c84.tar.bz2
kau-33ad3ab71a06d6505c37b1e23f7d9a82db243c84.zip
Update fast adapter
Diffstat (limited to 'fastadapter/src/main/kotlin/ca/allanwang/kau/adapters/AdapterUtils.kt')
-rw-r--r--fastadapter/src/main/kotlin/ca/allanwang/kau/adapters/AdapterUtils.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/fastadapter/src/main/kotlin/ca/allanwang/kau/adapters/AdapterUtils.kt b/fastadapter/src/main/kotlin/ca/allanwang/kau/adapters/AdapterUtils.kt
index 655b355..a9e6bfa 100644
--- a/fastadapter/src/main/kotlin/ca/allanwang/kau/adapters/AdapterUtils.kt
+++ b/fastadapter/src/main/kotlin/ca/allanwang/kau/adapters/AdapterUtils.kt
@@ -27,8 +27,8 @@ import com.mikepenz.fastadapter.select.SelectExtension
/**
* Add kotlin's generic syntax to better support out types
*/
-fun <Item : GenericItem> fastAdapter(vararg adapter: IAdapter<out Item>) =
- FastAdapter.with<Item, IAdapter<out Item>>(adapter.toList())
+fun <Item : GenericItem> fastAdapter(vararg adapter: IAdapter<out Item>): FastAdapter<Item> =
+ FastAdapter.with(adapter.toList())
/**
* Returns selection size, or -1 if selection is disabled