mirror of https://github.com/M66B/FairEmail.git
Prevent deleting via file provider
This commit is contained in:
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…
Reference in New Issue