put the name and the freed space on their own lines in the delete prompt

This commit is contained in:
austinried
2026-10-04 00:30:03 +00:00
parent 9bb2f7d8fc
commit 6c09e7d786
2 changed files with 3 additions and 1 deletions
@@ -23,10 +23,11 @@ fun DeleteDownloadsDialog(
onConfirm: () -> Unit, onConfirm: () -> Unit,
onDismiss: () -> Unit, onDismiss: () -> Unit,
) { ) {
val freed = formatBytes(LocalContext.current, bytes)
AlertDialog( AlertDialog(
onDismissRequest = onDismiss, onDismissRequest = onDismiss,
title = { Text("Delete downloads") }, title = { Text("Delete downloads") },
text = { Text("Delete the downloaded songs of \"$name\"? This frees ${formatBytes(LocalContext.current, bytes)}.") }, text = { Text("$name\nDeleting will free $freed") },
confirmButton = { confirmButton = {
TextButton( TextButton(
onClick = { onClick = {
@@ -24,6 +24,7 @@ class DeleteDownloadsDialogTest {
render(bytes = 1_500_000) render(bytes = 1_500_000)
composeRule.onNodeWithText("Kid A", substring = true).assertIsDisplayed() composeRule.onNodeWithText("Kid A", substring = true).assertIsDisplayed()
composeRule.onNodeWithText("Deleting will free", substring = true).assertIsDisplayed()
composeRule.onNodeWithText("MB", substring = true).assertIsDisplayed() composeRule.onNodeWithText("MB", substring = true).assertIsDisplayed()
} }