onDestroy

open override fun onDestroy(owner: LifecycleOwner)

Called when the fragment is destroyed. Removes this adapter as a lifecycle observer.