mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-21 21:57:19 +00:00
Prevent deleting via file provider
This commit is contained in:
parent
0466a68d5b
commit
d286c3d49d
1 changed files with 9 additions and 0 deletions
|
@ -19,6 +19,10 @@ package eu.faircode.email;
|
||||||
Copyright 2018-2023 by Marcel Bokhorst (M66B)
|
Copyright 2018-2023 by Marcel Bokhorst (M66B)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import android.net.Uri;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
import androidx.annotation.Nullable;
|
||||||
import androidx.core.content.FileProvider;
|
import androidx.core.content.FileProvider;
|
||||||
|
|
||||||
public class FileProviderEx extends FileProvider {
|
public class FileProviderEx extends FileProvider {
|
||||||
|
@ -26,4 +30,9 @@ public class FileProviderEx extends FileProvider {
|
||||||
public FileProviderEx() {
|
public FileProviderEx() {
|
||||||
super(R.xml.fileprovider_paths);
|
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 a new issue