removing a weird file creation

This commit is contained in:
tibbi 2016-11-10 20:06:36 +01:00
parent a971b215a5
commit 1710590639

View file

@ -255,7 +255,7 @@ public class MainActivity extends SimpleActivity
private void deleteItem(File file) {
if (Utils.Companion.needsStupidWritePermissions(this, file.getAbsolutePath())) {
if (!Utils.Companion.isShowingWritePermissions(this, new File(file.getAbsolutePath()))) {
if (!Utils.Companion.isShowingWritePermissions(this, file)) {
final DocumentFile document = Utils.Companion.getFileDocument(this, file.getAbsolutePath());
document.delete();
}