Avoid "flash" when calling from contacts or call history.
This commit is contained in:
@@ -308,7 +308,10 @@ private fun Calls(
|
|||||||
positiveAction.value = {
|
positiveAction.value = {
|
||||||
if (ua != null) {
|
if (ua != null) {
|
||||||
handleIntent(ctx, viewModel, intent, "call")
|
handleIntent(ctx, viewModel, intent, "call")
|
||||||
navController.popBackStack()
|
navController.navigate("main") {
|
||||||
|
popUpTo("main")
|
||||||
|
launchSingleTop = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
neutralButtonText.value = ctx.getString(R.string.send_message)
|
neutralButtonText.value = ctx.getString(R.string.send_message)
|
||||||
|
|||||||
@@ -242,7 +242,10 @@ private fun ContactsContent(
|
|||||||
positiveAction.value = {
|
positiveAction.value = {
|
||||||
if (ua != null) {
|
if (ua != null) {
|
||||||
handleIntent(ctx, viewModel, intent, "call")
|
handleIntent(ctx, viewModel, intent, "call")
|
||||||
navController.popBackStack()
|
navController.navigate("main") {
|
||||||
|
popUpTo("main")
|
||||||
|
launchSingleTop = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
neutralText.value = ctx.getString(R.string.send_message)
|
neutralText.value = ctx.getString(R.string.send_message)
|
||||||
|
|||||||
Reference in New Issue
Block a user