mirror of
https://github.com/ReVanced/revanced-manager
synced 2026-04-25 17:15:36 +02:00
fix: Announcement rendering
This commit is contained in:
@@ -137,7 +137,7 @@ fun AnnouncementScreen(
|
||||
</body>
|
||||
</html>
|
||||
""".trimIndent()
|
||||
webView.loadData(style, "text/html", "UTF-8")
|
||||
webView.loadDataWithBaseURL(null, style, "text/html", "UTF-8", null)
|
||||
},
|
||||
onRelease = {
|
||||
val webView = it.children.first() as WebView
|
||||
@@ -150,4 +150,4 @@ fun AnnouncementScreen(
|
||||
|
||||
private fun Color.toCss(): String {
|
||||
return "rgba(${red * 255f}, ${green * 255f}, ${blue * 255f}, $alpha)"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user