mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-28 03:46:00 +01:00
Prevent deleting via file provider
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user