- Disable call button if there is no accounts.
This commit is contained in:
@ -220,6 +220,8 @@ class MainActivity : AppCompatActivity() {
|
||||
}
|
||||
|
||||
callButton.setOnClickListener {
|
||||
if (aorSpinner.selectedItemPosition == -1)
|
||||
return@setOnClickListener
|
||||
callUri.setAdapter(null)
|
||||
val ua = UserAgent.uas()[aorSpinner.selectedItemPosition]
|
||||
val aor = ua.account.aor
|
||||
|
||||
Reference in New Issue
Block a user