- Start baresip service also when accounts file does not exist yet.
This commit is contained in:
@@ -427,9 +427,11 @@ class MainActivity : AppCompatActivity() {
|
|||||||
|
|
||||||
if (!BaresipService.isServiceRunning) {
|
if (!BaresipService.isServiceRunning) {
|
||||||
if (File(filesDir.absolutePath + "/accounts").exists()) {
|
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()
|
Charsets.UTF_8).lines().toMutableList()
|
||||||
askAorPasswords(accounts)
|
askAorPasswords(accounts)
|
||||||
|
} else {
|
||||||
|
startBaresip()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user