Migrated app to compose navigation

This commit is contained in:
Juha Heinanen
2025-05-27 14:30:06 +03:00
parent c35a1a5e88
commit 1f7d8fb509
45 changed files with 11381 additions and 11783 deletions
@@ -249,6 +249,14 @@ class Account(val accp: Long) {
return res
}
fun saveAccounts() {
var accounts = ""
for (a in accounts()) accounts = accounts + a.print() + "\n"
Utils.putFileContents(BaresipService.filesPath + "/accounts",
accounts.toByteArray(Charsets.UTF_8))
// Log.d(TAG, "Saved accounts '${accounts}' to '${BaresipService.filesPath}/accounts'")
}
fun ofAor(aor: String): Account? {
for (ua in BaresipService.uas.value)
if (ua.account.aor == aor) return ua.account