mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-01 01:19:59 +01:00
Merge pull request #5074 from nextcloud/bugfix/5073/fixInfinityMaximumHeight
fix crash in call view
This commit is contained in:
commit
5612cfa19d
@ -9,6 +9,7 @@
|
|||||||
|
|
||||||
package com.nextcloud.talk.call.components
|
package com.nextcloud.talk.call.components
|
||||||
|
|
||||||
|
import android.annotation.SuppressLint
|
||||||
import android.content.res.Configuration
|
import android.content.res.Configuration
|
||||||
import androidx.compose.foundation.clickable
|
import androidx.compose.foundation.clickable
|
||||||
import androidx.compose.foundation.layout.Arrangement
|
import androidx.compose.foundation.layout.Arrangement
|
||||||
@ -29,6 +30,7 @@ import com.nextcloud.talk.adapters.ParticipantUiState
|
|||||||
import org.webrtc.EglBase
|
import org.webrtc.EglBase
|
||||||
import kotlin.math.ceil
|
import kotlin.math.ceil
|
||||||
|
|
||||||
|
@SuppressLint("UnusedBoxWithConstraintsScope")
|
||||||
@Suppress("LongParameterList")
|
@Suppress("LongParameterList")
|
||||||
@Composable
|
@Composable
|
||||||
fun ParticipantGrid(
|
fun ParticipantGrid(
|
||||||
@ -78,7 +80,9 @@ fun ParticipantGrid(
|
|||||||
|
|
||||||
LazyVerticalGrid(
|
LazyVerticalGrid(
|
||||||
columns = GridCells.Fixed(columns),
|
columns = GridCells.Fixed(columns),
|
||||||
modifier = Modifier.fillMaxSize(),
|
modifier = Modifier
|
||||||
|
.fillMaxWidth()
|
||||||
|
.height(availableHeight),
|
||||||
verticalArrangement = Arrangement.spacedBy(itemSpacing),
|
verticalArrangement = Arrangement.spacedBy(itemSpacing),
|
||||||
horizontalArrangement = Arrangement.spacedBy(itemSpacing),
|
horizontalArrangement = Arrangement.spacedBy(itemSpacing),
|
||||||
contentPadding = PaddingValues(vertical = edgePadding, horizontal = edgePadding)
|
contentPadding = PaddingValues(vertical = edgePadding, horizontal = edgePadding)
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
|
|
||||||
package com.nextcloud.talk.call.components
|
package com.nextcloud.talk.call.components
|
||||||
|
|
||||||
|
import android.annotation.SuppressLint
|
||||||
import androidx.compose.foundation.background
|
import androidx.compose.foundation.background
|
||||||
import androidx.compose.foundation.layout.Box
|
import androidx.compose.foundation.layout.Box
|
||||||
import androidx.compose.foundation.layout.BoxWithConstraints
|
import androidx.compose.foundation.layout.BoxWithConstraints
|
||||||
@ -40,6 +41,7 @@ const val NICK_OFFSET = 4f
|
|||||||
const val NICK_BLUR_RADIUS = 4f
|
const val NICK_BLUR_RADIUS = 4f
|
||||||
const val AVATAR_SIZE_FACTOR = 0.6f
|
const val AVATAR_SIZE_FACTOR = 0.6f
|
||||||
|
|
||||||
|
@SuppressLint("UnusedBoxWithConstraintsScope")
|
||||||
@Suppress("Detekt.LongMethod")
|
@Suppress("Detekt.LongMethod")
|
||||||
@Composable
|
@Composable
|
||||||
fun ParticipantTile(
|
fun ParticipantTile(
|
||||||
|
Loading…
Reference in New Issue
Block a user