mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +01:00
removing a weird file creation
This commit is contained in:
parent
a971b215a5
commit
1710590639
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue