Cleanup code. This if was not necessary.
This commit is contained in:
parent
1b217d4649
commit
83f7268424
1 changed files with 7 additions and 11 deletions
|
|
@ -453,17 +453,13 @@ private fun StandardLayout(
|
||||||
}
|
}
|
||||||
Row(verticalAlignment = Alignment.Bottom) {
|
Row(verticalAlignment = Alignment.Bottom) {
|
||||||
if (voiceMessageState !is VoiceMessageState.Idle) {
|
if (voiceMessageState !is VoiceMessageState.Idle) {
|
||||||
if (voiceMessageState is VoiceMessageState.Preview || voiceMessageState is VoiceMessageState.Recording) {
|
Box(
|
||||||
Box(
|
modifier = Modifier
|
||||||
modifier = Modifier
|
.padding(bottom = 5.dp, top = 5.dp, end = 3.dp, start = 3.dp)
|
||||||
.padding(bottom = 5.dp, top = 5.dp, end = 3.dp, start = 3.dp)
|
.size(48.dp),
|
||||||
.size(48.dp),
|
contentAlignment = Alignment.Center,
|
||||||
contentAlignment = Alignment.Center,
|
) {
|
||||||
) {
|
voiceDeleteButton()
|
||||||
voiceDeleteButton()
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
Spacer(modifier = Modifier.width(16.dp))
|
|
||||||
}
|
}
|
||||||
Box(
|
Box(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue