Skip to content

Commit

Permalink
#169: deleted old files
Browse files Browse the repository at this point in the history
  • Loading branch information
k3b committed Apr 17, 2020
1 parent 3262f2b commit 45ccaa7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/src/main/java/de/k3b/android/io/AndroidFileApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import java.io.File;

import de.k3b.android.androFotoFinder.Global;
import de.k3b.android.util.FastDocumentFileTranslator;
import de.k3b.android.widget.FilePermissionActivity;
import de.k3b.io.FileApi;

Expand Down Expand Up @@ -66,7 +65,7 @@ protected boolean osRenameTo(File dest, File source) {
Boolean result = null;
try {
DocumentFile documentFile = geWritabletDocumentFile(source);
context += FastDocumentFileTranslator.toUriDebugString(documentFile);
context += AndroidFileApi.toUriDebugString(documentFile);
if (documentFile != null) {
result = documentFile.renameTo(dest.getName());
}
Expand All @@ -90,7 +89,7 @@ protected boolean osDeleteFile(File file) {
Boolean result = null;
try {
DocumentFile documentFile = geWritabletDocumentFile(file);
context += FastDocumentFileTranslator.toUriDebugString(documentFile);
context += AndroidFileApi.toUriDebugString(documentFile);
if (documentFile != null) {
result = documentFile.delete();
}
Expand Down

0 comments on commit 45ccaa7

Please sign in to comment.