mirror of
				https://github.com/owncloud/android-library.git
				synced 2025-10-30 01:48:14 +00:00 
			
		
		
		
	Fix file downloaded each time is tapped
This commit is contained in:
		
							parent
							
								
									d30a5578f3
								
							
						
					
					
						commit
						782361267d
					
				| @ -156,6 +156,9 @@ public class DownloadRemoteFileOperation extends RemoteOperation { | ||||
| 
 | ||||
|                     mEtag = WebdavUtils.getEtagFromResponse(mGet); | ||||
| 
 | ||||
|                     // Get rid of extra quotas | ||||
|                     mEtag = mEtag.replace("\"", ""); | ||||
| 
 | ||||
|                     if (mEtag.length() == 0) { | ||||
|                         Log_OC.e(TAG, "Could not read eTag from response downloading " + mRemotePath); | ||||
|                     } | ||||
|  | ||||
| @ -86,8 +86,7 @@ public class ReadRemoteFileOperation extends RemoteOperation<RemoteFile> { | ||||
|             if (status == HttpConstants.HTTP_MULTI_STATUS | ||||
|                     || status == HttpConstants.HTTP_OK) { | ||||
| 
 | ||||
|                 final RemoteFile file = new RemoteFile(propfind.getRoot(), | ||||
|                         client.getAccount().getDisplayName()); | ||||
|                 final RemoteFile file = new RemoteFile(propfind.getRoot(), client.getAccount().getDisplayName()); | ||||
| 
 | ||||
|                 result = new RemoteOperationResult<>(OK); | ||||
|                 result.setData(file); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user