Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1e42f25a authored by João Henrique's avatar João Henrique
Browse files

refactor: Extract common head HTML into constant

This commit extracts the common HTML head content used in `DisplayHtml.kt` into a new constant `headHtml`. This improves code readability and maintainability by centralizing this frequently used HTML snippet. The `cssStylePre()` method call has been moved into this new constant.
parent 61ebd421
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -25,8 +25,7 @@ class DisplayHtml(private val settings: HtmlSettings) : HtmlHeadProvider {
        return """
            <html dir="auto">
                <head>
                    <meta name="viewport" content="width=device-width"/>
                    ${cssStylePre()}
                    $headHtml
                </head>
                <body>
                    $messageContent