- Resume baresip application to the activity that was stopped.

- Add example contact when baresip is started the first time.
- Fixed showing of new message in the chats and messages list.
This commit is contained in:
Juha Heinanen
2019-03-16 08:32:16 +02:00
parent 75b8067e83
commit 613e92e868
9 changed files with 49 additions and 44 deletions
@@ -126,7 +126,6 @@ class BaresipService: Service() {
} catch (e: Error) {
Log.e(LOG_TAG, "Failed to create directory: " + e.toString())
}
}
for (a in assets) {
file = File("${filesPath}/$a")
@@ -160,7 +159,7 @@ class BaresipService: Service() {
}
}
}
ContactsActivity.restoreContacts(applicationContext.filesDir)
wl.acquire()
Thread(Runnable { baresipStart(filesPath) }).start()
BaresipService.isServiceRunning = true