Commit 1386f07b authored by Leonardo Aramaki's avatar Leonardo Aramaki

Remove endlessrecyclerviewlistener

parent a5f7be74
...@@ -37,7 +37,6 @@ class MessageInfoFragment : Fragment(), MessageInfoView { ...@@ -37,7 +37,6 @@ class MessageInfoFragment : Fragment(), MessageInfoView {
lateinit var presenter: MessageInfoPresenter lateinit var presenter: MessageInfoPresenter
private lateinit var adapter: ReadReceiptAdapter private lateinit var adapter: ReadReceiptAdapter
private lateinit var endlessRecyclerViewScrollListener: EndlessRecyclerViewScrollListener
private lateinit var messageId: String private lateinit var messageId: String
override fun onCreate(savedInstanceState: Bundle?) { override fun onCreate(savedInstanceState: Bundle?) {
...@@ -67,11 +66,6 @@ class MessageInfoFragment : Fragment(), MessageInfoView { ...@@ -67,11 +66,6 @@ class MessageInfoFragment : Fragment(), MessageInfoView {
presenter.loadReadReceipts(messageId = messageId) presenter.loadReadReceipts(messageId = messageId)
} }
override fun onDestroyView() {
super.onDestroyView()
receipt_list.removeOnScrollListener(endlessRecyclerViewScrollListener)
}
private fun setupRecyclerView() { private fun setupRecyclerView() {
// Initialize the endlessRecyclerViewScrollListener so we don't NPE at onDestroyView // Initialize the endlessRecyclerViewScrollListener so we don't NPE at onDestroyView
val linearLayoutManager = LinearLayoutManager(context, LinearLayoutManager.VERTICAL, true) val linearLayoutManager = LinearLayoutManager(context, LinearLayoutManager.VERTICAL, true)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment