adding an extra size check at directory adapter
This commit is contained in:
parent
b0be8c0481
commit
29de80ff79
1 changed files with 5 additions and 3 deletions
|
@ -294,9 +294,11 @@ class DirectoryAdapter(val activity: SimpleActivity, var dirs: MutableList<Direc
|
||||||
|
|
||||||
var needPermissionForPath = ""
|
var needPermissionForPath = ""
|
||||||
selectedPositions.forEach {
|
selectedPositions.forEach {
|
||||||
val path = dirs[it].path
|
if (dirs.size > it) {
|
||||||
if (activity.needsStupidWritePermissions(path) && config.treeUri.isEmpty()) {
|
val path = dirs[it].path
|
||||||
needPermissionForPath = path
|
if (activity.needsStupidWritePermissions(path) && config.treeUri.isEmpty()) {
|
||||||
|
needPermissionForPath = path
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue