From b8831fcc005d07a763b73eaef8264a113b2b0052 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 29 Jun 2026 14:25:29 +0300 Subject: [PATCH] Minor code optimization --- app/src/main/kotlin/com/tutpro/baresip/MainScreen.kt | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/app/src/main/kotlin/com/tutpro/baresip/MainScreen.kt b/app/src/main/kotlin/com/tutpro/baresip/MainScreen.kt index b3c2452a..174067c3 100644 --- a/app/src/main/kotlin/com/tutpro/baresip/MainScreen.kt +++ b/app/src/main/kotlin/com/tutpro/baresip/MainScreen.kt @@ -2253,14 +2253,11 @@ private fun showCall(ctx: Context, viewModel: ViewModel, ua: UserAgent?, showCal call.transferButtonEnabled.value = false } else { - if (call.dir == "out") { + if (call.dir == "out") call.callUriLabel.value = ctx.getString(R.string.outgoing_call_to_dots) - call.callUri.value = Utils.friendlyUri(ctx, call.peerUri, ua.account) - } - else { + else call.callUriLabel.value = ctx.getString(R.string.incoming_call_from_dots) - call.callUri.value = Utils.friendlyUri(ctx, call.peerUri, ua.account) - } + call.callUri.value = Utils.friendlyUri(ctx, call.peerUri, ua.account) call.transferButtonEnabled.value = !ua.account.isMobile } call.callUri2.value = ""