do now show the old folder after renaming

This commit is contained in:
tibbi 2016-12-07 19:31:00 +01:00
parent e319bb1623
commit 4a2d8076d0

View file

@ -81,7 +81,8 @@ class GetDirectoriesAsynctask(val context: Context, val isPickVideo: Boolean, va
}
context.scanFiles(invalidFiles) {}
val dirs = ArrayList(directories.values)
val dirs = ArrayList(directories.values.filter { File(it.path).exists() })
filterDirectories(dirs)
Directory.sorting = mConfig.directorySorting
dirs.sort()