Avoid "flash" when calling from contacts or call history.

This commit is contained in:
Juha Heinanen
2025-09-16 10:22:27 +03:00
parent 5fe190a889
commit a3f4684e84
2 changed files with 8 additions and 2 deletions

View File

@ -308,7 +308,10 @@ private fun Calls(
positiveAction.value = {
if (ua != null) {
handleIntent(ctx, viewModel, intent, "call")
navController.popBackStack()
navController.navigate("main") {
popUpTo("main")
launchSingleTop = true
}
}
}
neutralButtonText.value = ctx.getString(R.string.send_message)

View File

@ -242,7 +242,10 @@ private fun ContactsContent(
positiveAction.value = {
if (ua != null) {
handleIntent(ctx, viewModel, intent, "call")
navController.popBackStack()
navController.navigate("main") {
popUpTo("main")
launchSingleTop = true
}
}
}
neutralText.value = ctx.getString(R.string.send_message)