mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
check write permissions before starting the deletion
This commit is contained in:
@ -196,6 +196,12 @@ public class MainActivity extends SimpleActivity
|
||||
}
|
||||
}
|
||||
|
||||
for (String path : mToBeDeleted) {
|
||||
if (Utils.Companion.isShowingWritePermissions(this, new File(path))) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
notifyDeletion(deletedCnt);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user