save unsent message when chat activity is interrupted and recover it

when user resumes the activity
This commit is contained in:
Juha Heinanen
2018-12-01 06:27:40 +02:00
parent 4626967ae1
commit 3b8f52e7b1
3 changed files with 21 additions and 4 deletions
@@ -634,6 +634,7 @@ class BaresipService: Service() {
var history = ArrayList<CallHistory>()
var messages = ArrayList<Message>()
var contacts = ArrayList<Contact>()
var chatTexts: MutableMap<String, String> = mutableMapOf<String, String>()
var audioFocused = false
var audioFocusRequest: AudioFocusRequest? = null