- Added to main menu possibility to export and import all application date.

- Improved encryption/decryption of exported/imported data.  If accounts
  were exported, they need to be exported again.
- Lots of other implemetation improvements.
This commit is contained in:
Juha Heinanen
2019-10-09 11:48:26 +03:00
parent f40c097766
commit ac26c2256d
19 changed files with 420 additions and 300 deletions
@@ -36,7 +36,7 @@ class Message(val aor: String, val peerUri: String, val message: String, val tim
while (it.hasNext()) if (it.next().aor == aor) it.remove()
}
fun saveMessages() {
fun save() {
val file = File(BaresipService.filesPath, "messages")
try {
val fos = FileOutputStream(file)
@@ -51,7 +51,7 @@ class Message(val aor: String, val peerUri: String, val message: String, val tim
}
}
fun restoreMessages() {
fun restore() {
val file = File(BaresipService.filesPath, "messages")
if (file.exists()) {
try {