mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-01-30 19:24:51 +01:00
adding an extra size check at directory adapter
This commit is contained in:
parent
b0be8c0481
commit
29de80ff79
@ -294,9 +294,11 @@ class DirectoryAdapter(val activity: SimpleActivity, var dirs: MutableList<Direc
|
||||
|
||||
var needPermissionForPath = ""
|
||||
selectedPositions.forEach {
|
||||
val path = dirs[it].path
|
||||
if (activity.needsStupidWritePermissions(path) && config.treeUri.isEmpty()) {
|
||||
needPermissionForPath = path
|
||||
if (dirs.size > it) {
|
||||
val path = dirs[it].path
|
||||
if (activity.needsStupidWritePermissions(path) && config.treeUri.isEmpty()) {
|
||||
needPermissionForPath = path
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user