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