Revert "Guard Bugsnag delivery"

This reverts commit d69d0097ef.
pull/217/head
M66B 5 months ago
parent 4c3914d9af
commit 70dd34d89e

@ -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);
/*

Loading…
Cancel
Save