1
0
mirror of https://github.com/mihonapp/mihon.git synced 2025-04-03 11:05:40 +02:00

TrackDateRemoverScreen: Fix pop behavior after confirming removal ()

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

@ -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,