don't allow file deletion in DecryptedFileProvider

This commit is contained in:
Vincent Breitmoser 2016-07-14 12:14:08 +02:00
parent 3b0c1979f1
commit f33c083539

View file

@ -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");