mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
clear selection at folders and media, if content changes
This commit is contained in:
@ -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) {
|
||||||
|
Reference in New Issue
Block a user