diff --git a/app/src/main/kotlin/com/tutpro/baresip/MainActivity.kt b/app/src/main/kotlin/com/tutpro/baresip/MainActivity.kt
index a3fbed0c..a4bad715 100644
--- a/app/src/main/kotlin/com/tutpro/baresip/MainActivity.kt
+++ b/app/src/main/kotlin/com/tutpro/baresip/MainActivity.kt
@@ -1790,16 +1790,12 @@ class MainActivity : AppCompatActivity() {
}
private fun backup(password: String) {
- val files = arrayListOf("accounts", "history", "config", "contacts", "messages",
- "gzrtp.zid", "cert.pem", "ca_cert", "ca_certs.crt")
+ val files = arrayListOf("accounts", "config", "contacts", "call_history",
+ "messages", "gzrtp.zid", "cert.pem", "ca_cert", "ca_certs.crt")
File(BaresipService.filesPath).walk().forEach {
if (it.name.endsWith(".png"))
files.add(it.name)
}
- File("${BaresipService.filesPath}/recordings").walk().forEach {
- if (it.name.startsWith("dump"))
- files.add("recordings/${it.name}")
- }
val zipFile = getString(R.string.app_name) + ".zip"
val zipFilePath = BaresipService.filesPath + "/$zipFile"
if (!Utils.zip(files, zipFile)) {
@@ -1853,6 +1849,17 @@ class MainActivity : AppCompatActivity() {
return
}
Utils.deleteFile(File(zipFilePath))
+
+ File("${BaresipService.filesPath}/recordings").walk().forEach {
+ if (it.name.startsWith("dump"))
+ Utils.deleteFile(it)
+ }
+
+ CallHistoryNew.restore()
+ for (h in BaresipService.callHistory)
+ h.recording = arrayOf("", "")
+ CallHistoryNew.save()
+
with(MaterialAlertDialogBuilder(this, R.style.AlertDialogTheme)) {
setTitle(getString(R.string.info))
setMessage(getString(R.string.restored))
diff --git a/app/src/main/res/values-fi/strings.xml b/app/src/main/res/values-fi/strings.xml
index 1169f2ea..f8621621 100644
--- a/app/src/main/res/values-fi/strings.xml
+++ b/app/src/main/res/values-fi/strings.xml
@@ -548,8 +548,9 @@
Tämä puhelu on turvallinen ja kohde on
todennettu! Haluatko poistaa todennuksen\?
Poista todennus
- Sovelluksen tiedot talletettiin tiedostoon \'%1$s\'. Android
- versiossa 9 tiedosto löytyy Download-kansiosta.
+ Sovelluksen tiedot (äänityksiä lukuunottamatta)
+ talletettiin tiedostoon \'%1$s\'. Android versiossa 9 tiedosto löytyy
+ Download-kansiosta.
Sovelluksen tietojen talletus
tiedostoon \'%1$s\' epäonnistui. Android versiossa 9 tarkista
Asetukset → Sovellukset → baresip → Käyttöluvat → Tallennustila.
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index b6ae6b1c..988b758e 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -527,8 +527,8 @@
Do you want to unverify the peer\?
Unverify
- Application data has been backed up to file \'%1$s\'. In Android
- version 9, the file is in Download folder.
+ Application data (excluding recordings) backed up
+ to file \'%1$s\'. In Android version 9, the file is in Download folder.
Failed to back up application data to file
\'%1$s\'. Check Apps → baresip → Permissions → Storage.
Restart Request