Filter download image failed reports

This commit is contained in:
M66B 2019-05-10 17:00:50 +02:00
parent 68d84ff97f
commit 83c3c81407
1 changed files with 6 additions and 0 deletions

View File

@ -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