- Go directly to Accounts activity when baresip is started without

any accounts.
This commit is contained in:
Juha Heinanen
2019-10-02 16:23:07 +03:00
parent a6c86b5243
commit 7e337c23af
4 changed files with 21 additions and 2 deletions
@@ -190,6 +190,11 @@ class AccountsActivity : AppCompatActivity() {
accounts)
}
fun noAccounts(): Boolean {
return Utils.getFileContents(File(BaresipService.filesPath + "/accounts"))
.length == 0
}
}
}