aaverin
02/29/2016, 9:13 AMprivate var adapter: RecyclerView.Adapter<*>? = null
fun <T : RecyclerView.Adapter<*>> setAdapter(adapter: T) {
this.adapter = adapter
onAdapterSet()
}
fun <T : RecyclerView.Adapter<*>> getAdapter() : T? {
return adapter as T
}
Still the same, some of the methods on Adapter are abstract and can't be called