Do not add new account twice plus some minor changes

This commit is contained in:
Juha Heinanen
2022-05-17 22:15:03 +03:00
parent 470bd4f5a6
commit d3bd77f7e4
3 changed files with 2 additions and 3 deletions

View File

@ -113,7 +113,7 @@ class AccountActivity : AppCompatActivity() {
val config = try {
URL(url).readText()
} catch (e: java.lang.Exception) {
Log.d(TAG, "Network request failed")
Log.d(TAG, "Failed to get account configuration from network")
null
}
if (config != null && !ctx.isFinishing) {

View File

@ -73,7 +73,6 @@ class AccountsActivity : AppCompatActivity() {
newAorView.setText("")
newAorView.hint = getString(R.string.user_domain)
newAorView.clearFocus()
ua.add()
generateAccounts()
alAdapter.notifyDataSetChanged()
saveAccounts()

View File

@ -541,7 +541,7 @@ class BaresipService: Service() {
R.drawable.dot_white
else
R.drawable.dot_yellow
uas.add(UserAgent(uap))
uas.add(ua)
return
}