Skip to content

Commit

Permalink
Replace avatar click handler with long-click
Browse files Browse the repository at this point in the history
  • Loading branch information
liviu-timar committed Oct 27, 2023
1 parent 45d3e85 commit 8b5fb94
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ package io.getstream.video.android.ui.join
import android.net.Uri
import android.widget.Toast
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.clickable
import androidx.compose.foundation.combinedClickable
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
Expand Down Expand Up @@ -147,6 +149,7 @@ fun CallJoinScreen(
}
}

@OptIn(ExperimentalFoundationApi::class)
@Composable
private fun CallJoinHeader(
callJoinViewModel: CallJoinViewModel = hiltViewModel(),
Expand All @@ -164,7 +167,12 @@ private fun CallJoinHeader(
user?.let {
Box(
modifier = if (BuildConfig.FLAVOR == "production") {
Modifier.clickable(onClick = onAvatarLongClick)
Modifier.combinedClickable(
interactionSource = remember { MutableInteractionSource() },
indication = null,
onClick = {},
onLongClick = onAvatarLongClick,
)
} else {
Modifier
},
Expand Down

0 comments on commit 8b5fb94

Please sign in to comment.