AppDataDocumentProvider: Allow to remove documents

This commit is contained in:
Ishan09811 2025-03-15 19:53:22 +05:30 committed by GitHub
parent b286537b69
commit dc6dd3bb64
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) {
deleteDocument(documentId);
}
@Override
public ParcelFileDescriptor openDocument(String documentId, String mode, @Nullable CancellationSignal signal) throws FileNotFoundException {
return ParcelFileDescriptor.open(obtainFile(documentId), ParcelFileDescriptor.parseMode(mode));