clear actMode of adapters on destroy
This commit is contained in:
parent
5a954febf4
commit
4959a11ca9
2 changed files with 2 additions and 0 deletions
|
@ -113,6 +113,7 @@ class DirectoryAdapter(val activity: SimpleActivity, val dirs: MutableList<Direc
|
|||
super.onDestroyActionMode(actionMode)
|
||||
views.forEach { toggleItemSelection(it, false) }
|
||||
markedItems.clear()
|
||||
actMode = null
|
||||
}
|
||||
|
||||
fun checkHideBtnVisibility(menu: Menu, positions: List<Int>) {
|
||||
|
|
|
@ -100,6 +100,7 @@ class MediaAdapter(val activity: SimpleActivity, var media: MutableList<Medium>,
|
|||
super.onDestroyActionMode(actionMode)
|
||||
views.forEach { toggleItemSelection(it, false) }
|
||||
markedItems.clear()
|
||||
actMode = null
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue