add persistent notification for battery; bug fixes

This commit is contained in:
Kavish Devar
2024-12-05 10:02:19 +05:30
parent 7a246b3800
commit 0c1f9464ad
13 changed files with 536 additions and 230 deletions
@@ -91,16 +91,6 @@ class Window (context: Context) {
batteryCaseText.text = batteryStatus.find { it.component == BatteryComponent.CASE }?.let {
"\uDBC3\uDE6C ${it.level}%"
} ?: ""
// bText.text =
// batteryStatus.joinToString(separator = "") {
// when (it.component) {
// BatteryComponent.LEFT -> "\uDBC6\uDCE5 ${it.level}%"
// BatteryComponent.RIGHT -> "\uDBC6\uDCE8 ${it.level}%"
// BatteryComponent.CASE -> "\uDBC6\uDCE6 ${it.level}%"
// else -> ""
// }
// }
// composeView.setContent {
// Row (
// modifier = Modifier