mirror of
https://github.com/BillyOutlast/aps3e.git
synced 2026-02-04 03:01:22 +01:00
Fix: delete empty directory after deleting contents
This commit is contained in:
@@ -160,6 +160,7 @@ public class InnerDocumentsProvider extends android.provider.DocumentsProvider{
|
||||
if(!dir.delete()) {
|
||||
throw new FileNotFoundException("Failed to delete directory with id " + dir.getPath());
|
||||
}
|
||||
}
|
||||
@Override
|
||||
public void deleteDocument(String documentId) throws FileNotFoundException {
|
||||
File file = getFileForDocId(documentId);
|
||||
@@ -293,4 +294,4 @@ public class InnerDocumentsProvider extends android.provider.DocumentsProvider{
|
||||
row.add(Document.COLUMN_ICON, R.drawable.app_icon);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user