MCPcopy Create free account
hub / github.com/M66B/FairEmail / forceCrashReport

Method forceCrashReport

app/src/main/java/eu/faircode/email/Log.java:223–234  ·  view source on GitHub ↗
(Context context, Throwable fatal)

Source from the content-addressed store, hash-verified

221 }
222
223 static void forceCrashReport(Context context, Throwable fatal) {
224 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
225 boolean crash_reports = prefs.getBoolean("crash_reports", false);
226 try {
227 prefs.edit().putBoolean("crash_reports", true).apply();
228 setCrashReporting(true);
229 Log.e(fatal);
230 } finally {
231 prefs.edit().putBoolean("crash_reports", crash_reports).apply();
232 setCrashReporting(crash_reports);
233 }
234 }
235
236 public static void breadcrumb(String name, Bundle args) {
237 Map<String, String> crumb = new HashMap<>();

Callers 2

getInstanceMethod · 0.95
onOpenMethod · 0.95

Calls 4

setCrashReportingMethod · 0.95
eMethod · 0.95
getBooleanMethod · 0.80
applyMethod · 0.45

Tested by

no test coverage detected