Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

Commit

Permalink
fix(files): reword addApplication method to addFile
Browse files Browse the repository at this point in the history
Signed-off-by: Rafa Hernandez <[email protected]>
  • Loading branch information
rafaelje authored and Hector Rondon committed Sep 21, 2018
1 parent a5a9001 commit 68f51af
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ private String getFile(JSONObject jsonObjDownload, String path, String url, Stri
File file = new File(filePath);
if (file.exists()) {
FlyveLog.i("File exists: " + filePath);
addApplication(file, fileName);
addFile(file, fileName);
return file.getAbsolutePath();
}

Expand All @@ -262,7 +262,7 @@ public void progress(int value) {
mBuilder.setContentText(context.getString(R.string.download_complete, fileName));
FlyveLog.i(context.getString(R.string.download_file_ready) + file.getAbsolutePath());

addApplication(file, fileName);
addFile(file, fileName);

return file.getAbsolutePath();
} else {
Expand All @@ -279,7 +279,7 @@ public void progress(int value) {
}
}

private void addApplication(File file, String fileName) {
private void addFile(File file, String fileName) {
org.flyve.mdm.agent.data.database.entity.File dataFile = new org.flyve.mdm.agent.data.database.entity.File();
dataFile.fileName = fileName;
dataFile.filePath = file.getAbsolutePath();
Expand Down

0 comments on commit 68f51af

Please sign in to comment.