diff --git a/app/src/main/java/org/secuso/privacyfriendlypaindiary/backup/BackupCreator.kt b/app/src/main/java/org/secuso/privacyfriendlypaindiary/backup/BackupCreator.kt index e08767d..0c11b77 100644 --- a/app/src/main/java/org/secuso/privacyfriendlypaindiary/backup/BackupCreator.kt +++ b/app/src/main/java/org/secuso/privacyfriendlypaindiary/backup/BackupCreator.kt @@ -17,7 +17,7 @@ import java.io.OutputStreamWriter import kotlin.text.Charsets.UTF_8 class BackupCreator : IBackupCreator { - override fun writeBackup(context: Context, outputStream: OutputStream) { + override fun writeBackup(context: Context, outputStream: OutputStream): Boolean { Log.d("PFA BackupCreator", "createBackup() started") val outputStreamWriter = OutputStreamWriter(outputStream, UTF_8) val writer = JsonWriter(outputStreamWriter) @@ -45,8 +45,10 @@ class BackupCreator : IBackupCreator { } catch (e: Exception) { Log.e("PFA BackupCreator", "Error occurred", e) e.printStackTrace() + return false } Log.d("PFA BackupCreator", "Backup created successfully") + return true } } \ No newline at end of file diff --git a/libs/privacy-friendly-backup-api b/libs/privacy-friendly-backup-api index ec782fb..2548856 160000 --- a/libs/privacy-friendly-backup-api +++ b/libs/privacy-friendly-backup-api @@ -1 +1 @@ -Subproject commit ec782fb3ca894589a7be56af8acecad600b372b5 +Subproject commit 254885602ee4501a572f56306fbf2b3712cfc834