Backported chat crash fixes and code improvements from video branch.

This commit is contained in:
Juha Heinanen
2020-05-31 14:24:50 +03:00
parent 366bfbb120
commit 3558fc0e03
5 changed files with 34 additions and 46 deletions
@@ -73,14 +73,5 @@ class Contact(var name: String, var uri: String, var color: Int, val id: Long) {
return true
}
fun import(): Boolean {
val contacts = Utils.getFileContents(BaresipService.downloadsPath + "/contacts.bs")
if (contacts != null) {
Utils.putFileContents(BaresipService.filesPath + "/contacts", contacts)
return restore()
}
return false
}
}
}