mirror of https://github.com/M66B/FairEmail.git
Filter download image failed reports
This commit is contained in:
parent
68d84ff97f
commit
83c3c81407
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue