check write permissions before starting the deletion

This commit is contained in:
tibbi
2016-11-06 20:49:47 +01:00
parent 6c9c072dc9
commit 0ade1ec579
3 changed files with 12 additions and 1 deletions

View File

@ -196,6 +196,12 @@ public class MainActivity extends SimpleActivity
}
}
for (String path : mToBeDeleted) {
if (Utils.Companion.isShowingWritePermissions(this, new File(path))) {
return;
}
}
notifyDeletion(deletedCnt);
}