Skip to content

Commit

Permalink
feat(iam-dialog): set html and inappMetadata to field instead of loca…
Browse files Browse the repository at this point in the history
…l variable

SDK-217

Co-authored-by: matusekma <[email protected]>
  • Loading branch information
LordAndras and matusekma committed Feb 10, 2025
1 parent e76bdf9 commit 340837b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,14 @@ class IamDialog(
setStyle(STYLE_NO_FRAME, android.R.style.Theme_Dialog)

val activity = activityReference?.get() ?: this.activity
val html = html ?: savedInstanceState?.getString("html")
val inAppMetaData = inAppMetaData
html = html ?: savedInstanceState?.getString("html")
inAppMetaData = inAppMetaData
?: if (AndroidVersionUtils.isBelowTiramisu) savedInstanceState?.getSerializable("inAppMetaData") as InAppMetaData?
else getInAppMetaDataFromBundle(savedInstanceState)
if (iamWebView == null && activity != null) {
iamWebView = webViewFactory.create(activity)
if (html != null && inAppMetaData != null) {
iamWebView?.load(html, inAppMetaData) {}
iamWebView?.load(html!!, inAppMetaData!!) {}
}
}
}
Expand Down

0 comments on commit 340837b

Please sign in to comment.