From db7ba760bd4d2eab4395e0c466e14a15430ffc0b Mon Sep 17 00:00:00 2001 From: henry Date: Thu, 29 Mar 2018 23:21:37 -0400 Subject: [PATCH] Added date on bin file --- .../cy/agorise/crystalwallet/manager/FileBackupManager.java | 1 + .../crystalwallet/requestmanagers/CreateBackupRequest.java | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/cy/agorise/crystalwallet/manager/FileBackupManager.java b/app/src/main/java/cy/agorise/crystalwallet/manager/FileBackupManager.java index bd4ffe2..ccd1ec3 100644 --- a/app/src/main/java/cy/agorise/crystalwallet/manager/FileBackupManager.java +++ b/app/src/main/java/cy/agorise/crystalwallet/manager/FileBackupManager.java @@ -102,6 +102,7 @@ public class FileBackupManager implements FileServiceRequestsListener { boolean success = saveBinFile(path,content,request); if(success) { + request.setFilePath(path); request.setStatus(CreateBackupRequest.StatusCode.SUCCEEDED); }else{ request.setStatus(CreateBackupRequest.StatusCode.FAILED); diff --git a/app/src/main/java/cy/agorise/crystalwallet/requestmanagers/CreateBackupRequest.java b/app/src/main/java/cy/agorise/crystalwallet/requestmanagers/CreateBackupRequest.java index e105e97..94b38af 100644 --- a/app/src/main/java/cy/agorise/crystalwallet/requestmanagers/CreateBackupRequest.java +++ b/app/src/main/java/cy/agorise/crystalwallet/requestmanagers/CreateBackupRequest.java @@ -20,8 +20,8 @@ public class CreateBackupRequest extends FileServiceRequest { private String filePath; private StatusCode status; - public CreateBackupRequest(Context context) { - super(context); + public CreateBackupRequest(Context context, String password) { + super(context,password); this.filePath = ""; this.status = StatusCode.NOT_STARTED; }