From 96e926168c7f08cf56f39cf50de818d51d18b19b Mon Sep 17 00:00:00 2001 From: ericek111 Date: Sat, 10 Oct 2026 21:13:39 +0000 Subject: [PATCH] Android: reorder the client sheet MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Connection info moves to the end, just above the volume slider, which stays last; "Add to whisper list…" is left out of the sheet for now. Co-Authored-By: Claude Opus 5.5 --- .../src/main/java/eu/lixko/ts3j/client/android/ui/Sheets.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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)