clear actMode of adapters on destroy

This commit is contained in:
tibbi 2017-04-17 21:33:23 +02:00
parent 5a954febf4
commit 4959a11ca9
2 changed files with 2 additions and 0 deletions

View file

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

View file

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