Close #18934: Remove adapter when deataching from window
This commit is contained in:
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…
Reference in New Issue
Block a user