- Made backup/restore to work also on Android 10 (API level 29)

- Suppressed some warnings.
This commit is contained in:
Juha Heinanen
2020-04-12 11:52:14 +03:00
parent 43f5a003f2
commit 54e1a53075
5 changed files with 71 additions and 57 deletions
@@ -62,6 +62,7 @@ class CallHistory(val aor: String, val peerURI: String, val direction: String,
try {
val fis = FileInputStream(file)
val ois = ObjectInputStream(fis)
@Suppress("UNCHECKED_CAST")
BaresipService.callHistory = ois.readObject() as ArrayList<CallHistory>
ois.close()
fis.close()