AppDataDocumentProvider: Allow to remove documents (#744)

* AppDataDocumentProvider: Allow to remove documents

* Typo
This commit is contained in:
Ishan09811 2025-03-16 17:23:50 +05:30 committed by GitHub
parent 506bf24775
commit da9dd8522a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -158,6 +158,11 @@ public class AppDataDocumentProvider extends DocumentsProvider {
} }
} }
@Override
public void removeDocument(String documentId, String parentDocumentId) throws FileNotFoundException {
deleteDocument(documentId);
}
@Override @Override
public ParcelFileDescriptor openDocument(String documentId, String mode, @Nullable CancellationSignal signal) throws FileNotFoundException { public ParcelFileDescriptor openDocument(String documentId, String mode, @Nullable CancellationSignal signal) throws FileNotFoundException {
return ParcelFileDescriptor.open(obtainFile(documentId), ParcelFileDescriptor.parseMode(mode)); return ParcelFileDescriptor.open(obtainFile(documentId), ParcelFileDescriptor.parseMode(mode));