- Start baresip service also when accounts file does not exist yet.

This commit is contained in:
Juha Heinanen
2020-03-19 17:25:28 +02:00
parent f91afdc5f2
commit 1697fef92e

View File

@ -427,9 +427,11 @@ class MainActivity : AppCompatActivity() {
if (!BaresipService.isServiceRunning) {
if (File(filesDir.absolutePath + "/accounts").exists()) {
var accounts = String(Utils.getFileContents(filesDir.absolutePath + "/accounts")!!,
val accounts = String(Utils.getFileContents(filesDir.absolutePath + "/accounts")!!,
Charsets.UTF_8).lines().toMutableList()
askAorPasswords(accounts)
} else {
startBaresip()
}
}