don't allow file deletion in DecryptedFileProvider
This commit is contained in:
parent
3b0c1979f1
commit
f33c083539
1 changed files with 5 additions and 0 deletions
|
@ -105,6 +105,11 @@ public class DecryptedFileProvider extends FileProvider {
|
|||
return uri.getQueryParameter("mime_type");
|
||||
}
|
||||
|
||||
@Override
|
||||
public int delete(Uri uri, String selection, String[] selectionArgs) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
@Override
|
||||
public ParcelFileDescriptor openFile(Uri uri, String mode) throws FileNotFoundException {
|
||||
ParcelFileDescriptor pfd = super.openFile(uri, "r");
|
||||
|
|
Loading…
Reference in a new issue