- More work on character avatars.

This commit is contained in:
Juha Heinanen
2019-11-20 05:27:23 +02:00
parent e72c587fa7
commit b7f3379d73
12 changed files with 109 additions and 74 deletions
@@ -1,6 +1,5 @@
package com.tutpro.baresip
import java.nio.charset.StandardCharsets
import java.util.ArrayList
class Contact(var name: String, var uri: String, var color: Int) {
@@ -23,7 +22,7 @@ class Contact(var name: String, var uri: String, var color: Int) {
fun restore(): Boolean {
val content = Utils.getFileContents(BaresipService.filesPath + "/contacts")
if (content == null) return false
val contacts = String(content, StandardCharsets.ISO_8859_1)
val contacts = String(content)
Api.contacts_remove()
BaresipService.contacts.clear()
contacts.lines().forEach {