Simplified implementation of UA spinner

This commit is contained in:
Juha Heinanen
2022-03-13 14:33:49 +02:00
parent 892e955fbf
commit 3c9205bd9e
6 changed files with 23 additions and 38 deletions
@@ -447,12 +447,12 @@ class AccountActivity : AppCompatActivity() {
if (regCheck.isChecked) {
if (acc.regint != 3600) {
newRegint = 3600
ua.updateStatus(R.drawable.dot_yellow)
ua.status = R.drawable.dot_yellow
}
} else {
if (acc.regint != 0) {
Api.ua_unregister(ua.uap)
ua.updateStatus(R.drawable.dot_white)
ua.status = R.drawable.dot_white
newRegint = 0
}
}
@@ -592,9 +592,7 @@ class AccountActivity : AppCompatActivity() {
if (defaultCheck.isChecked && (uaIndex > 0)) {
BaresipService.uas.add(0, BaresipService.uas[uaIndex])
BaresipService.status.add(0, BaresipService.status[uaIndex])
BaresipService.uas.removeAt(uaIndex + 1)
BaresipService.status.removeAt(uaIndex + 1)
save = true
}