From dc9aa620f5069c74b49323ddd0eacba1a4b3a48d Mon Sep 17 00:00:00 2001 From: Juha Heinanen Date: Thu, 19 Mar 2020 09:00:01 +0200 Subject: [PATCH] - Initialize account's status dot to yellow, when Register is checked at Account activity. --- app/src/main/kotlin/com/tutpro/baresip/AccountActivity.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/tutpro/baresip/AccountActivity.kt b/app/src/main/kotlin/com/tutpro/baresip/AccountActivity.kt index 0521692c..7668dc80 100644 --- a/app/src/main/kotlin/com/tutpro/baresip/AccountActivity.kt +++ b/app/src/main/kotlin/com/tutpro/baresip/AccountActivity.kt @@ -301,7 +301,10 @@ class AccountActivity : AppCompatActivity() { var newRegint = -1 if (regCheck.isChecked) { - if (acc.regint != 3600) newRegint = 3600 + if (acc.regint != 3600) { + newRegint = 3600 + UserAgent.updateStatus(ua, R.drawable.dot_yellow) + } } else { if (acc.regint != 0) { Api.ua_unregister(ua.uap)