add battery to the popup

This commit is contained in:
Kavish Devar
2024-11-30 08:35:02 +05:30
parent 3e0de6f011
commit 4a1d7df82d
4 changed files with 11 additions and 24 deletions

View File

@@ -19,7 +19,6 @@ import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxHeight
@@ -483,7 +482,7 @@ fun AirPodsSettingsScreen(device: BluetoothDevice?, service: AirPodsService?,
CenterAlignedTopAppBar(
title = {
Text(
text = device!!.name,
text = if (device != null) device.name else "",
color = if (MaterialTheme.colorScheme.surface.luminance() < 0.5) Color.White else Color.Black,
)
},