mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-03 19:34:15 +01:00
Filter download image failed reports
This commit is contained in:
@@ -52,6 +52,7 @@ import org.json.JSONException;
|
||||
import org.json.JSONObject;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.FileWriter;
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
@@ -185,6 +186,11 @@ public class ApplicationEx extends Application {
|
||||
("connection failure".equals(ex.getMessage()) ||
|
||||
"failed to create new store connection".equals(ex.getMessage())))
|
||||
return false;
|
||||
|
||||
if (ex instanceof FileNotFoundException &&
|
||||
ex.getMessage() != null &&
|
||||
ex.getMessage().startsWith("Download image failed"))
|
||||
return false;
|
||||
}
|
||||
|
||||
return prefs.getBoolean("crash_reports", false); // opt-in
|
||||
|
||||
Reference in New Issue
Block a user