<@U0ANSGGVC>: ``` private var adapter: RecyclerVi...
# announcements
a
@kirillrakhman:
Copy code
private 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