mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-11 08:47:33 +00:00
fix(nests): drop redundant Live chip while broadcasting
The red Mic-on FilledIconButton already conveys "you are live, tap to stop" — the AssistChip labelled "Live" beside it was duplicate visual noise. Removed the chip and its now-orphan string. Mute toggle + red Mic + Leave the Stage are sufficient to express the broadcasting state.
This commit is contained in:
-10
@@ -34,7 +34,6 @@ import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.foundation.layout.size
|
||||
import androidx.compose.foundation.layout.width
|
||||
import androidx.compose.material3.AssistChip
|
||||
import androidx.compose.material3.AssistChipDefaults
|
||||
import androidx.compose.material3.Button
|
||||
import androidx.compose.material3.ButtonDefaults
|
||||
import androidx.compose.material3.FilledIconButton
|
||||
@@ -338,15 +337,6 @@ private fun OnStageControls(
|
||||
}
|
||||
|
||||
is BroadcastUiState.Broadcasting -> {
|
||||
AssistChip(
|
||||
onClick = {},
|
||||
enabled = false,
|
||||
label = { Text(stringRes(R.string.nest_broadcasting)) },
|
||||
colors =
|
||||
AssistChipDefaults.assistChipColors(
|
||||
disabledLabelColor = MaterialTheme.colorScheme.error,
|
||||
),
|
||||
)
|
||||
FilledTonalIconToggleButton(
|
||||
checked = broadcast.isMuted,
|
||||
onCheckedChange = { viewModel.setMicMuted(it) },
|
||||
|
||||
@@ -521,7 +521,6 @@
|
||||
<string name="nest_mic_mute">Mute mic</string>
|
||||
<string name="nest_mic_unmute">Unmute mic</string>
|
||||
<string name="nest_broadcast_connecting">Going live…</string>
|
||||
<string name="nest_broadcasting">Live</string>
|
||||
<string name="nest_broadcast_failed">Broadcast failed: %1$s</string>
|
||||
<string name="nest_mute_failed">Mute failed: %1$s</string>
|
||||
<string name="nest_record_permission_required">Microphone access is required to talk in this room.</string>
|
||||
|
||||
Reference in New Issue
Block a user