use lowercase paths at deleting folders

This commit is contained in:
tibbi 2016-11-17 15:55:39 +01:00
parent 639c3d57c6
commit db04516773

View file

@ -178,7 +178,7 @@ class DirectoryAdapter(val activity: SimpleActivity, val dirs: MutableList<Direc
private fun prepareForDeleting() { private fun prepareForDeleting() {
val selections = multiSelector.selectedPositions val selections = multiSelector.selectedPositions
val paths = ArrayList<String>() val paths = ArrayList<String>()
selections.forEach { paths.add(dirs[it].path) } selections.forEach { paths.add(dirs[it].path.toLowerCase()) }
listener?.prepareForDeleting(paths) listener?.prepareForDeleting(paths)
} }