clear selection at folders and media, if content changes

This commit is contained in:
tibbi 2017-09-30 21:04:21 +02:00
parent 50a693d5e6
commit e67253ccae
2 changed files with 2 additions and 0 deletions

View file

@ -351,6 +351,7 @@ class DirectoryAdapter(val activity: SimpleActivity, var dirs: MutableList<Direc
fun updateDirs(newDirs: ArrayList<Directory>) {
dirs = newDirs
notifyDataSetChanged()
actMode?.finish()
}
fun updateTextColor(textColor: Int) {

View file

@ -266,6 +266,7 @@ class MediaAdapter(val activity: SimpleActivity, var media: MutableList<Medium>,
fun updateMedia(newMedia: ArrayList<Medium>) {
media = newMedia
notifyDataSetChanged()
actMode?.finish()
}
fun updateDisplayFilenames(display: Boolean) {