diff --git a/app/src/main/java/com/example/satsmonitor/MainActivity.kt b/app/src/main/java/com/example/satsmonitor/MainActivity.kt index c02e5ba..040ca3f 100644 --- a/app/src/main/java/com/example/satsmonitor/MainActivity.kt +++ b/app/src/main/java/com/example/satsmonitor/MainActivity.kt @@ -26,6 +26,7 @@ class MainActivity : AppCompatActivity() { // Load the HTML content from the "index.html" file val htmlContent = try { + // Load the HTML content from the "index.html" file assets.open("index.html").bufferedReader().use { it.readText() } } catch (e: IOException) { e.printStackTrace() @@ -52,17 +53,17 @@ class MainActivity : AppCompatActivity() { } // Combine the HTML, CSS, and JavaScript code - val finalHtmlContent = """ - - - - - - $htmlContent - - - - """.trimIndent() +val finalHtmlContent = """ + + + + + + $htmlContent + + + +""".trimIndent() webView.loadDataWithBaseURL(null, finalHtmlContent, "text/html", "UTF-8", null) }