/*
} else if (result.getCode() == ResultCode.QUOTA_EXCEEDED) {
message = res.getString(R.string.failed_upload_quota_exceeded_text);
-
*/
+
+ } else if (result.getCode() == ResultCode.FORBIDDEN) {
+ message = String.format(res.getString(R.string.forbidden_permissions),
+ res.getString(R.string.uploader_upload_forbidden_permissions));
+
} else {
message = String.format(res.getString(R.string.uploader_upload_failed_content_single),
((UploadFileOperation) operation).getFileName());
new File(((DownloadFileOperation) operation).getSavePath()).getName());
} else {
- message = String.format(res.getString(R.string.downloader_download_failed_content),
- new File(((DownloadFileOperation) operation).getSavePath()).getName());
+ if (result.getCode() == ResultCode.FILE_NOT_FOUND) {
+ message = res.getString(R.string.downloader_download_file_not_found);
+
+ } else {
+ message = String.format(res.getString(R.string.downloader_download_failed_content), new File(
+ ((DownloadFileOperation) operation).getSavePath()).getName());
+ }
}
} else if (operation instanceof RemoveFileOperation) {