Prevent deleting via file provider

This commit is contained in:
M66B 2023-01-05 21:53:22 +01:00
parent 0466a68d5b
commit d286c3d49d
1 changed files with 9 additions and 0 deletions

View File

@ -19,6 +19,10 @@ package eu.faircode.email;
Copyright 2018-2023 by Marcel Bokhorst (M66B)
*/
import android.net.Uri;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.core.content.FileProvider;
public class FileProviderEx extends FileProvider {
@ -26,4 +30,9 @@ public class FileProviderEx extends FileProvider {
public FileProviderEx() {
super(R.xml.fileprovider_paths);
}
@Override
public int delete(@NonNull Uri uri, @Nullable String selection, @Nullable String[] selectionArgs) {
throw new UnsupportedOperationException("No external updates");
}
}