Prevent deleting via file provider

pull/210/head
M66B 2 years ago
parent 0466a68d5b
commit d286c3d49d

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

Loading…
Cancel
Save