diff --git a/android/app/src/main/java/eu/lixko/ts3j/client/android/ui/Sheets.kt b/android/app/src/main/java/eu/lixko/ts3j/client/android/ui/Sheets.kt index 17d85ef..833c647 100644 --- a/android/app/src/main/java/eu/lixko/ts3j/client/android/ui/Sheets.kt +++ b/android/app/src/main/java/eu/lixko/ts3j/client/android/ui/Sheets.kt @@ -91,7 +91,6 @@ fun ClientSheet( } details?.let { DetailsSection(it, onLink, Modifier.padding(bottom = 8.dp)) } onFindInTree?.let { Action("CHANNEL_SWITCH", "Find client in channel tree", onClick = it) } - Action("INFO", "Connection info", onClick = onConnectionInfo) if (client.self) { Action("AWAY", if (away) "Back" else "Away") { onAway(!away) } moderation() @@ -99,7 +98,7 @@ fun ClientSheet( Action("PLAYER_CHAT", "Send message", onClick = onMessage) Action("POKE", "Poke") { poking = true } onWhisper?.let { Action("PLAYER_WHISPER", "Whisper", onClick = it) } - onAddToWhisperList?.let { Action("ON_WHISPERLIST", "Add to whisper list…", onClick = it) } + // "Add to whisper list…" (onAddToWhisperList) is left out for now. onMove?.let { Action("CHANNEL_SWITCH", "Move to channel…", onClick = it) } onMoveToOwnChannel?.let { Action("MOVE_CLIENT_TO_OWN_CHANNEL", "Move to own channel", onClick = it) } moderation() @@ -111,6 +110,9 @@ fun ClientSheet( } else { Action("EDIT_FRIEND_FOE_STATUS", "Edit contact", onClick = onEditContact) } + } + Action("INFO", "Connection info", onClick = onConnectionInfo) + if (!client.self) { var volume by remember { mutableFloatStateOf(initialVolume.toFloat()) } Text("Volume: ${if (volume > 0) "+" else ""}${volume.roundToInt()} dB", Modifier.padding(start = 24.dp, top = 8.dp), style = MaterialTheme.typography.bodyMedium)