diff --git a/app/src/main/kotlin/com/tutpro/baresip/AccountsScreen.kt b/app/src/main/kotlin/com/tutpro/baresip/AccountsScreen.kt index 6d9bc14c..92e5379d 100644 --- a/app/src/main/kotlin/com/tutpro/baresip/AccountsScreen.kt +++ b/app/src/main/kotlin/com/tutpro/baresip/AccountsScreen.kt @@ -208,7 +208,7 @@ fun NewAccount(navController: NavController) { if (Account.ofAor(aor) != null) { alertTitle.value = ctx.getString(R.string.notice) alertMessage.value = - String.format(ctx.getString(R.string.account_exists), aor.removePrefix("sip:")) + String.format(ctx.getString(R.string.account_exists), aor.split(":")[1]) showAlert.value = true return null }