Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -324,9 +324,13 @@ String getMessageForDownloadFileOperation(
new File(operation.getSavePath()).getName());

} else {
if (result.getCode() == ResultCode.FILE_NOT_FOUND) {
return res.getString(R.string.downloader_download_file_not_found);

switch (result.getCode()) {
case FILE_NOT_FOUND:
return res.getString(R.string.downloader_download_file_not_found);
case CANNOT_CREATE_FILE:
return res.getString(R.string.download_cannot_create_file);
case INVALID_LOCAL_FILE_NAME:
return res.getString(R.string.download_download_invalid_local_file_name);
}
}
return null;
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1075,4 +1075,6 @@
<string name="document_scan_export_dialog_title">Choose export type</string>
<string name="document_scan_export_dialog_pdf">PDF file</string>
<string name="document_scan_export_dialog_images">Multiple images</string>
<string name="download_cannot_create_file">Cannot create local file</string>
<string name="download_download_invalid_local_file_name">Invalid filename for local file</string>
</resources>