We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f2c6ae commit 5199b74Copy full SHA for 5199b74
src/Sentry/Platforms/Android/SentrySdk.cs
@@ -100,10 +100,14 @@ private static void InitSentryAndroidSdk(SentryOptions options)
100
}
101
102
103
- if (options.Android.SuppressSegfaults || options.Native.EnableBeforeSend || options.BeforeSendInternal != null)
+ if (options.Android.SuppressSegfaults)
104
{
105
o.BeforeSend = new BeforeSendCallback(BeforeSendWrapper(options), options, o);
106
107
+ else if (options.Native.EnableBeforeSend && options.BeforeSendInternal is { } beforeSend)
108
+ {
109
+ o.BeforeSend = beforeSend;
110
+ }
111
112
// These options are from SentryAndroidOptions
113
o.AttachScreenshot = options.Native.AttachScreenshot;
0 commit comments