mirror of
https://github.com/kavishdevar/librepods.git
synced 2026-09-01 08:51:39 +02:00
android: hide reconnect button in m3e when no successful aacp connection
This commit is contained in:
+12
-1
@@ -736,6 +736,7 @@ fun AirPodsSettingsScreen(
|
||||
|
||||
val animatedShapeColor by animateColorAsState(if (reconnecting) primaryContainerColor else secondaryContainerColor)
|
||||
|
||||
if (state.connectionSuccessful) {
|
||||
Box(
|
||||
modifier = Modifier
|
||||
.size(240.dp)
|
||||
@@ -792,7 +793,10 @@ fun AirPodsSettingsScreen(
|
||||
|
||||
val bounds = shapePath.getBounds()
|
||||
|
||||
val scale = min(size.width/bounds.width, size.height/bounds.height) * 0.8f
|
||||
val scale = min(
|
||||
size.width / bounds.width,
|
||||
size.height / bounds.height
|
||||
) * 0.8f
|
||||
|
||||
scaleMatrix.reset()
|
||||
|
||||
@@ -826,6 +830,13 @@ fun AirPodsSettingsScreen(
|
||||
style = MaterialTheme.typography.labelSmallEmphasized,
|
||||
color = MaterialTheme.colorScheme.primary
|
||||
)
|
||||
} else {
|
||||
Text(
|
||||
text = stringResource(R.string.not_connected),
|
||||
style = MaterialTheme.typography.labelMediumEmphasized,
|
||||
color = MaterialTheme.colorScheme.primary
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
if (!BuildConfig.PLAY_BUILD) {
|
||||
|
||||
Reference in New Issue
Block a user