fix: Remove AudioVisualizer

This commit is contained in:
Myzel394 2023-08-06 21:13:22 +02:00
parent 2eb19ac5c4
commit 0d723bcfd4
No known key found for this signature in database
GPG Key ID: 79CC92F37B3E1A2B

View File

@ -103,13 +103,6 @@ fun StartRecording(
horizontalAlignment = Alignment.CenterHorizontally, horizontalAlignment = Alignment.CenterHorizontally,
verticalArrangement = Arrangement.Bottom, verticalArrangement = Arrangement.Bottom,
) { ) {
if (hasAmplitudes)
AudioVisualizer(
modifier = Modifier
.height(100.dp)
.padding(bottom = 32.dp),
amplitudes = service.amplitudes,
)
Button( Button(
modifier = Modifier modifier = Modifier
.padding(16.dp) .padding(16.dp)
@ -117,7 +110,8 @@ fun StartRecording(
.height(BIG_PRIMARY_BUTTON_SIZE), .height(BIG_PRIMARY_BUTTON_SIZE),
onClick = { onClick = {
saveFile(service.concatenateFiles()) saveFile(service.concatenateFiles())
} },
colors = ButtonDefaults.textButtonColors(),
) { ) {
Icon( Icon(
Icons.Default.Save, Icons.Default.Save,