Skip to content

Commit 8f2c6ae

Browse files
committed
Update SentrySdk.cs
1 parent af339e2 commit 8f2c6ae

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Sentry/Platforms/Android/SentrySdk.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,10 @@ private static void InitSentryAndroidSdk(SentryOptions options)
100100
}
101101
}
102102

103-
o.BeforeSend = new BeforeSendCallback(BeforeSendWrapper(options), options, o);
103+
if (options.Android.SuppressSegfaults || options.Native.EnableBeforeSend || options.BeforeSendInternal != null)
104+
{
105+
o.BeforeSend = new BeforeSendCallback(BeforeSendWrapper(options), options, o);
106+
}
104107

105108
// These options are from SentryAndroidOptions
106109
o.AttachScreenshot = options.Native.AttachScreenshot;

0 commit comments

Comments
 (0)