1
0
mirror of https://github.com/owncloud/android-library.git synced 2025-06-08 00:16:09 +00:00

Fix file downloaded each time is tapped

This commit is contained in:
davigonz 2018-08-29 12:03:58 +02:00
parent d30a5578f3
commit 782361267d
2 changed files with 4 additions and 2 deletions

View File

@ -156,6 +156,9 @@ public class DownloadRemoteFileOperation extends RemoteOperation {
mEtag = WebdavUtils.getEtagFromResponse(mGet); mEtag = WebdavUtils.getEtagFromResponse(mGet);
// Get rid of extra quotas
mEtag = mEtag.replace("\"", "");
if (mEtag.length() == 0) { if (mEtag.length() == 0) {
Log_OC.e(TAG, "Could not read eTag from response downloading " + mRemotePath); Log_OC.e(TAG, "Could not read eTag from response downloading " + mRemotePath);
} }

View File

@ -86,8 +86,7 @@ public class ReadRemoteFileOperation extends RemoteOperation<RemoteFile> {
if (status == HttpConstants.HTTP_MULTI_STATUS if (status == HttpConstants.HTTP_MULTI_STATUS
|| status == HttpConstants.HTTP_OK) { || status == HttpConstants.HTTP_OK) {
final RemoteFile file = new RemoteFile(propfind.getRoot(), final RemoteFile file = new RemoteFile(propfind.getRoot(), client.getAccount().getDisplayName());
client.getAccount().getDisplayName());
result = new RemoteOperationResult<>(OK); result = new RemoteOperationResult<>(OK);
result.setData(file); result.setData(file);