[fenix] Close https://github.com/mozilla-mobile/fenix/issues/18934: Remove adapter when deataching from window

pull/600/head
Jonathan Almeida 3 years ago committed by Jonathan Almeida
parent 4ba99372f2
commit 167d925c12

@ -88,6 +88,9 @@ abstract class BaseBrowserTrayList @JvmOverloads constructor(
tabsFeature.stop()
swipeToDelete.stop()
// Release the adapter so that `onDetachedFromRecyclerView` will be called in the adapter.
adapter = null
touchHelper.attachToRecyclerView(null)
}
}

Loading…
Cancel
Save