Added date on bin file
This commit is contained in:
parent
3efbcbb9f4
commit
db7ba760bd
2 changed files with 3 additions and 2 deletions
|
@ -102,6 +102,7 @@ public class FileBackupManager implements FileServiceRequestsListener {
|
||||||
|
|
||||||
boolean success = saveBinFile(path,content,request);
|
boolean success = saveBinFile(path,content,request);
|
||||||
if(success) {
|
if(success) {
|
||||||
|
request.setFilePath(path);
|
||||||
request.setStatus(CreateBackupRequest.StatusCode.SUCCEEDED);
|
request.setStatus(CreateBackupRequest.StatusCode.SUCCEEDED);
|
||||||
}else{
|
}else{
|
||||||
request.setStatus(CreateBackupRequest.StatusCode.FAILED);
|
request.setStatus(CreateBackupRequest.StatusCode.FAILED);
|
||||||
|
|
|
@ -20,8 +20,8 @@ public class CreateBackupRequest extends FileServiceRequest {
|
||||||
private String filePath;
|
private String filePath;
|
||||||
private StatusCode status;
|
private StatusCode status;
|
||||||
|
|
||||||
public CreateBackupRequest(Context context) {
|
public CreateBackupRequest(Context context, String password) {
|
||||||
super(context);
|
super(context,password);
|
||||||
this.filePath = "";
|
this.filePath = "";
|
||||||
this.status = StatusCode.NOT_STARTED;
|
this.status = StatusCode.NOT_STARTED;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue