Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update SentrySdk.cs
  • Loading branch information
aritchie committed Mar 4, 2025
commit 192cbc15f868063e24fa18b15a54eb8feac66280
7 changes: 1 addition & 6 deletions src/Sentry/Platforms/Android/SentrySdk.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,10 @@ private static void InitSentryAndroidSdk(SentryOptions options)
}
}

if (options.Android.SuppressSegfaults)
if (options.Android.SuppressSegfaults || (options.Native.EnableBeforeSend && options.BeforeSendInternal != null))
{
// user BeforeSend will be run by the wrapper as well if it is set
o.BeforeSend = new BeforeSendCallback(BeforeSendWrapper(options), options, o);
}
else if (options.Native.EnableBeforeSend && options.BeforeSendInternal != null)
{
o.BeforeSend = options.BeforeSendInternal;
}

// These options are from SentryAndroidOptions
o.AttachScreenshot = options.Native.AttachScreenshot;
Expand Down
Loading