Skip to content

Commit eb6c7be

Browse files
authored
Merge pull request #531 from Countly/fix_serve_widgets_contents
fix: bug of close via contents
2 parents 6c35f96 + 40e4e30 commit eb6c7be

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## XX.XX.XX
2+
* Mitigated an issue where closing surveys that were presented via journeys was triggering an exception.
3+
14
## 25.4.9
25
* Added a new config option `disableViewRestartForManualRecording()` to disable auto close/restart behavior of manual views on app background/foreground actions.
36

sdk/src/main/java/ly/count/android/sdk/TransparentActivity.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ protected void onCreate(Bundle savedInstanceState) {
5454
currentOrientation = intent.getIntExtra(ORIENTATION, 0);
5555
configLandscape = (TransparentActivityConfig) intent.getSerializableExtra(CONFIGURATION_LANDSCAPE);
5656
configPortrait = (TransparentActivityConfig) intent.getSerializableExtra(CONFIGURATION_PORTRAIT);
57+
5758
Log.v(Countly.TAG, "[TransparentActivity] onCreate, orientation: " + currentOrientation);
5859
Log.v(Countly.TAG, "[TransparentActivity] onCreate, configLandscape x: ["
5960
+ configLandscape.x
@@ -328,7 +329,9 @@ private boolean widgetUrlAction(String url, WebView view) {
328329
close(query);
329330

330331
ModuleFeedback.CountlyFeedbackWidget widgetInfo = (ModuleFeedback.CountlyFeedbackWidget) getIntent().getSerializableExtra(WIDGET_INFO);
331-
Countly.sharedInstance().moduleFeedback.reportFeedbackWidgetCancelButton(widgetInfo);
332+
if (widgetInfo != null) {
333+
Countly.sharedInstance().moduleFeedback.reportFeedbackWidgetCancelButton(widgetInfo);
334+
}
332335
}
333336
}
334337

0 commit comments

Comments
 (0)