Use iconbutton for Android contact call and send message icons
This commit is contained in:
@@ -222,11 +222,10 @@ private fun Uris(
|
|||||||
fontSize = 18.sp,
|
fontSize = 18.sp,
|
||||||
color = MaterialTheme.colorScheme.onBackground,
|
color = MaterialTheme.colorScheme.onBackground,
|
||||||
)
|
)
|
||||||
Icon(
|
|
||||||
imageVector = Icons.AutoMirrored.Filled.Chat,
|
// Chat Button
|
||||||
contentDescription = "Send Message",
|
IconButton(
|
||||||
tint = MaterialTheme.colorScheme.onBackground,
|
onClick = {
|
||||||
modifier = Modifier.padding(end = 24.dp).clickable {
|
|
||||||
val aor = viewModel.selectedAor.value
|
val aor = viewModel.selectedAor.value
|
||||||
val ua = UserAgent.ofAor(aor)
|
val ua = UserAgent.ofAor(aor)
|
||||||
if (ua == null)
|
if (ua == null)
|
||||||
@@ -242,12 +241,17 @@ private fun Uris(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
) {
|
||||||
Icon(
|
Icon(
|
||||||
imageVector = Icons.Outlined.Call,
|
imageVector = Icons.AutoMirrored.Filled.Chat,
|
||||||
contentDescription = "Call",
|
contentDescription = "Send Message",
|
||||||
tint = MaterialTheme.colorScheme.onBackground,
|
tint = MaterialTheme.colorScheme.onBackground
|
||||||
modifier = Modifier.clickable {
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Call Button
|
||||||
|
IconButton(
|
||||||
|
onClick = {
|
||||||
val aor = viewModel.selectedAor.value
|
val aor = viewModel.selectedAor.value
|
||||||
val ua = UserAgent.ofAor(aor)
|
val ua = UserAgent.ofAor(aor)
|
||||||
if (ua == null)
|
if (ua == null)
|
||||||
@@ -263,10 +267,16 @@ private fun Uris(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
) {
|
||||||
|
Icon(
|
||||||
|
imageVector = Icons.Outlined.Call,
|
||||||
|
contentDescription = "Call",
|
||||||
|
tint = MaterialTheme.colorScheme.onBackground
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user