Skip to content

Commit 88ad1a9

Browse files
author
farfromrefug
committed
fix(android): fix for boolean options in init method
1 parent d7ca46e commit 88ad1a9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: src/sentry/wrapper.android.ts

+2
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,8 @@ export namespace NATIVE {
381381
if (value && typeof config[methodName] === 'function') {
382382
if (typeof value === 'number') {
383383
config[methodName](java.lang.Double.valueOf(value));
384+
} else if (typeof value === 'boolean') {
385+
config[methodName](java.lang.Boolean.valueOf(value));
384386
} else {
385387
config[methodName](value);
386388
}

0 commit comments

Comments
 (0)