clear selection at folders and media, if content changes
This commit is contained in:
parent
50a693d5e6
commit
e67253ccae
2 changed files with 2 additions and 0 deletions
|
@ -351,6 +351,7 @@ class DirectoryAdapter(val activity: SimpleActivity, var dirs: MutableList<Direc
|
||||||
fun updateDirs(newDirs: ArrayList<Directory>) {
|
fun updateDirs(newDirs: ArrayList<Directory>) {
|
||||||
dirs = newDirs
|
dirs = newDirs
|
||||||
notifyDataSetChanged()
|
notifyDataSetChanged()
|
||||||
|
actMode?.finish()
|
||||||
}
|
}
|
||||||
|
|
||||||
fun updateTextColor(textColor: Int) {
|
fun updateTextColor(textColor: Int) {
|
||||||
|
|
|
@ -266,6 +266,7 @@ class MediaAdapter(val activity: SimpleActivity, var media: MutableList<Medium>,
|
||||||
fun updateMedia(newMedia: ArrayList<Medium>) {
|
fun updateMedia(newMedia: ArrayList<Medium>) {
|
||||||
media = newMedia
|
media = newMedia
|
||||||
notifyDataSetChanged()
|
notifyDataSetChanged()
|
||||||
|
actMode?.finish()
|
||||||
}
|
}
|
||||||
|
|
||||||
fun updateDisplayFilenames(display: Boolean) {
|
fun updateDisplayFilenames(display: Boolean) {
|
||||||
|
|
Loading…
Reference in a new issue