From d063c2990cc20b1e762aca5259b4d63053aaf4ab Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Mon, 19 Jun 2023 20:58:38 -0400 Subject: [PATCH] Moves the label to the bottom of the video --- .../ui/screen/loggedIn/ChannelScreen.kt | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/app/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/ChannelScreen.kt b/app/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/ChannelScreen.kt index 6121a9df0..8a63c60ba 100644 --- a/app/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/ChannelScreen.kt +++ b/app/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/ChannelScreen.kt @@ -408,6 +408,23 @@ fun ChannelHeader(baseChannel: Channel, accountViewModel: AccountViewModel, nav: nav("Channel/${baseChannel.idHex}") } ) { + if (channel is LiveActivitiesChannel) { + val streamingUrl by remember(channelState) { + derivedStateOf { + channel.info?.streaming() + } + } + + if (streamingUrl != null) { + Row(verticalAlignment = Alignment.CenterVertically) { + VideoView( + videoUri = streamingUrl!!, + description = null + ) + } + } + } + Column(modifier = Modifier.padding(12.dp)) { Row(verticalAlignment = Alignment.CenterVertically) { RobohashAsyncImageProxy( @@ -458,23 +475,6 @@ fun ChannelHeader(baseChannel: Channel, accountViewModel: AccountViewModel, nav: } } - if (channel is LiveActivitiesChannel) { - val streamingUrl by remember(channelState) { - derivedStateOf { - channel.info?.streaming() - } - } - - if (streamingUrl != null) { - Row(verticalAlignment = Alignment.CenterVertically, modifier = Modifier.padding(bottom = 5.dp)) { - VideoView( - videoUri = streamingUrl!!, - description = null - ) - } - } - } - Divider( modifier = Modifier.padding(start = 12.dp, end = 12.dp), thickness = 0.25.dp