mirror of
https://github.com/M66B/FairEmail.git
synced 2026-05-19 13:34:00 +02:00
@@ -35,8 +35,6 @@ internal class DefaultDelivery(
|
||||
integrity: String?,
|
||||
headers: Map<String, String?>
|
||||
): DeliveryStatus {
|
||||
if (!System.getProperty("com.bugsnag.android.enabled").toBoolean())
|
||||
return DeliveryStatus.FAILURE // Should not happen
|
||||
|
||||
TrafficStats.setThreadStatsTag(1)
|
||||
if (connectivity != null && !connectivity.hasNetworkConnection()) {
|
||||
|
||||
@@ -314,7 +314,6 @@ public class Log {
|
||||
|
||||
static void setCrashReporting(boolean enabled) {
|
||||
try {
|
||||
System.setProperty("com.bugsnag.android.enabled", Boolean.toString(enabled));
|
||||
if (enabled)
|
||||
Bugsnag.resumeSession();
|
||||
else
|
||||
@@ -590,10 +589,8 @@ public class Log {
|
||||
Log.i("uuid=" + uuid);
|
||||
client.setUser(uuid, null, null);
|
||||
|
||||
if (prefs.getBoolean("crash_reports", false) || Log.isTestRelease()) {
|
||||
System.setProperty("com.bugsnag.android.enabled", Boolean.toString(true));
|
||||
if (prefs.getBoolean("crash_reports", false) || Log.isTestRelease())
|
||||
Bugsnag.startSession();
|
||||
}
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user