Skip to content

Commit

Permalink
fix: bug when data is not displayed on the Hangouts and Announcement …
Browse files Browse the repository at this point in the history
…screens (openedx#242)
  • Loading branch information
dixidroid authored Feb 29, 2024
1 parent 8ec0f73 commit d38625a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions core/src/main/java/org/openedx/core/ui/WebContentScreen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -197,5 +197,19 @@ private fun WebViewContent(
}
}
},
update = { webView ->
body?.let {
webView.loadDataWithBaseURL(
apiHostUrl,
body.replaceLinkTags(isDarkTheme),
"text/html",
StandardCharsets.UTF_8.name(),
null
)
}
contentUrl?.let {
webView.loadUrl(it)
}
}
)
}

0 comments on commit d38625a

Please sign in to comment.