Skip to content

Commit 3849226

Browse files
authored
fix: Announcement rendering
1 parent d9485f4 commit 3849226

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/main/java/app/revanced/manager/ui/screen/AnnouncementScreen.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ fun AnnouncementScreen(
137137
</body>
138138
</html>
139139
""".trimIndent()
140-
webView.loadData(style, "text/html", "UTF-8")
140+
webView.loadDataWithBaseURL(null, style, "text/html", "UTF-8", null)
141141
},
142142
onRelease = {
143143
val webView = it.children.first() as WebView
@@ -150,4 +150,4 @@ fun AnnouncementScreen(
150150

151151
private fun Color.toCss(): String {
152152
return "rgba(${red * 255f}, ${green * 255f}, ${blue * 255f}, $alpha)"
153-
}
153+
}

0 commit comments

Comments
 (0)