Close #18934: Remove adapter when deataching from window

upstream-sync
Jonathan Almeida 3 years ago committed by Jonathan Almeida
parent 1944a5ef6b
commit cb60461bdd

@ -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