Skip to content

Commit

Permalink
Update backup api to v1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
udenr committed Jan 12, 2024
1 parent 819e6fd commit c154bba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
}
}

0 comments on commit c154bba

Please sign in to comment.