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 7cf781a
Showing 1 changed file with 4 additions and 0 deletions.
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 7cf781a

Please sign in to comment.