TrackDateRemoverScreen: Fix pop behavior after confirming removal (#8792)

This commit is contained in:
Ivan Iskandar 2022-12-23 21:29:01 +07:00 committed by GitHub
parent a14c01c1de
commit 94a410f50f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -524,7 +524,7 @@ private data class TrackDateRemoverScreen(
Text(text = stringResource(android.R.string.cancel))
}
FilledTonalButton(
onClick = { sm.removeDate(); navigator.popUntilRoot() },
onClick = { sm.removeDate(); navigator.popUntil { it is TrackInfoDialogHomeScreen } },
colors = ButtonDefaults.filledTonalButtonColors(
containerColor = MaterialTheme.colorScheme.errorContainer,
contentColor = MaterialTheme.colorScheme.onErrorContainer,