Skip to content

Commit

Permalink
Update the file name on the notification (#620)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenser Almeida committed Aug 19, 2022
1 parent ab53601 commit fea2165
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"workbench.colorCustomizations": {
"activityBar.background": "#1B322C",
"titleBar.activeBackground": "#26463E",
"titleBar.activeForeground": "#F8FBFB"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,10 @@ private void downloadFile(Context context, String fileURL, String savedDir, Stri
outputStream = context.getContentResolver().openOutputStream(uri, "w");
} else {
File file = createFileInAppSpecificDir(filename, savedDir);
if (file.getName() != filename) {
filename = file.getName();
taskDao.updateTask(getId().toString(), filename, contentType);
}
savedFilePath = file.getPath();
outputStream = new FileOutputStream(file, false);
}
Expand Down

0 comments on commit fea2165

Please sign in to comment.