mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 20:01:55 +00:00
Rework: improve OnGoingCallIcon API.
This commit is contained in:
+4
-8
@@ -173,9 +173,9 @@ private fun RowScope.LastMessageAndIndicatorRow(room: RoomListRoomSummary) {
|
|||||||
verticalAlignment = Alignment.CenterVertically,
|
verticalAlignment = Alignment.CenterVertically,
|
||||||
) {
|
) {
|
||||||
// Video call
|
// Video call
|
||||||
OnGoingCallIcon(
|
if (room.hasRoomCall) {
|
||||||
room.hasRoomCall,
|
OnGoingCallIcon()
|
||||||
)
|
}
|
||||||
// Other indicators
|
// Other indicators
|
||||||
NotificationIcons(
|
NotificationIcons(
|
||||||
room.userDefinedNotificationMode,
|
room.userDefinedNotificationMode,
|
||||||
@@ -186,17 +186,13 @@ private fun RowScope.LastMessageAndIndicatorRow(room: RoomListRoomSummary) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
private fun OnGoingCallIcon(
|
private fun OnGoingCallIcon() {
|
||||||
hasRoomCall: Boolean,
|
|
||||||
) {
|
|
||||||
if (hasRoomCall) {
|
|
||||||
Icon(
|
Icon(
|
||||||
modifier = Modifier.size(16.dp),
|
modifier = Modifier.size(16.dp),
|
||||||
imageVector = CompoundIcons.VideoCallSolid,
|
imageVector = CompoundIcons.VideoCallSolid,
|
||||||
contentDescription = null,
|
contentDescription = null,
|
||||||
tint = ElementTheme.colors.unreadIndicator,
|
tint = ElementTheme.colors.unreadIndicator,
|
||||||
)
|
)
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
|
|||||||
Reference in New Issue
Block a user