- new implementation of messaging

- fixed possible crash when messages arrive before accounts are created
- other minor fixes and improvements
This commit is contained in:
Juha Heinanen
2018-11-18 09:37:22 +02:00
parent ec12536fd9
commit 49d9d8c311
25 changed files with 457 additions and 358 deletions
@@ -77,18 +77,12 @@ class AccountsActivity : AppCompatActivity() {
companion object {
var accounts = ArrayList<AccountRow>()
var posAtAccounts = ArrayList<Int>()
fun generateAccounts() {
accounts.clear()
posAtAccounts.clear()
var i = 0;
for (ua in MainActivity.uas) {
for (ua in MainActivity.uas)
accounts.add(AccountRow(ua.account.aor.replace("sip:", ""),
R.drawable.action_remove))
posAtAccounts.add(i)
i++
}
}
fun saveAccounts() {