File tree Expand file tree Collapse file tree 2 files changed +13
-8
lines changed
android/src/main/java/com/instabug/reactlibrary Expand file tree Collapse file tree 2 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -1137,7 +1137,7 @@ public void setEmailFieldRequired(boolean isEmailFieldRequired) {
1137
1137
@ ReactMethod
1138
1138
public void setCommentFieldRequired (boolean isCommentFieldRequired ) {
1139
1139
try {
1140
- Instabug . setCommentFieldRequired ( isCommentFieldRequired );
1140
+ BugReporting . setInvocationOptions ( InvocationOption . COMMENT_FIELD_REQUIRED );
1141
1141
} catch (java .lang .Exception exception ) {
1142
1142
exception .printStackTrace ();
1143
1143
}
@@ -1532,11 +1532,14 @@ public void run() {
1532
1532
*/
1533
1533
@ ReactMethod
1534
1534
public void setSuccessDialogEnabled (boolean enabled ) {
1535
- try {
1536
- Instabug .setSuccessDialogEnabled (enabled );
1537
- } catch (Exception e ) {
1538
- e .printStackTrace ();
1535
+ if (enabled ) {
1536
+ try {
1537
+ BugReporting .setInvocationOptions (InvocationOption .DISABLE_POST_SENDING_DIALOG );
1538
+ } catch (Exception e ) {
1539
+ e .printStackTrace ();
1540
+ }
1539
1541
}
1542
+
1540
1543
}
1541
1544
1542
1545
/**
Original file line number Diff line number Diff line change @@ -298,7 +298,7 @@ module.exports = {
298
298
} ,
299
299
300
300
/**
301
- * Enables/disables screenshot view when reporting a bug/improvement.
301
+ * @deprecated Enables/disables screenshot view when reporting a bug/improvement.
302
302
* By default, screenshot view is shown when reporting a bug, but not when
303
303
* sending feedback.
304
304
* @param {boolean } willSkipScreenshotAnnotation sets whether screenshot view is
@@ -362,7 +362,7 @@ module.exports = {
362
362
} ,
363
363
364
364
/**
365
- * Sets whether users are required to enter an email address or not when
365
+ * @deprecated Sets whether users are required to enter an email address or not when
366
366
* sending reports.
367
367
* Defaults to YES.
368
368
* @param {boolean } isEmailFieldRequired A boolean to indicate whether email
@@ -404,7 +404,7 @@ module.exports = {
404
404
405
405
406
406
/**
407
- * Sets whether users are required to enter a comment or not when sending reports.
407
+ * @deprecated Sets whether users are required to enter a comment or not when sending reports.
408
408
* Defaults to NO.
409
409
* @param {boolean } isCommentFieldRequired A boolean to indicate whether comment
410
410
* field is required or not.
@@ -1013,6 +1013,8 @@ module.exports = {
1013
1013
} ,
1014
1014
1015
1015
/**
1016
+ * @deprecated
1017
+ *
1016
1018
* @param enabled true to show success dialog after submitting a bug report
1017
1019
*
1018
1020
*/
You can’t perform that action at this time.
0 commit comments