mirror of
				https://github.com/owncloud/android-library.git
				synced 2025-10-31 02:17:41 +00:00 
			
		
		
		
	Fix bug: No files are shown when login in oc8.1
This commit is contained in:
		
							parent
							
								
									21b0e27e31
								
							
						
					
					
						commit
						91e4a44157
					
				| @ -45,6 +45,8 @@ public class WebdavEntry { | |||||||
|     public static final String PROPERTY_QUOTA_USED_BYTES = "quota-used-bytes"; |     public static final String PROPERTY_QUOTA_USED_BYTES = "quota-used-bytes"; | ||||||
|     public static final String PROPERTY_QUOTA_AVAILABLE_BYTES = "quota-available-bytes"; |     public static final String PROPERTY_QUOTA_AVAILABLE_BYTES = "quota-available-bytes"; | ||||||
| 
 | 
 | ||||||
|  |     private static final int CODE_PROP_NOT_FOUND = 404; | ||||||
|  | 
 | ||||||
| 	private String mName, mPath, mUri, mContentType, mEtag, mPermissions, mRemoteId; | 	private String mName, mPath, mUri, mContentType, mEtag, mPermissions, mRemoteId; | ||||||
| 	private long mContentLength, mCreateTimestamp, mModifiedTimestamp, mSize; | 	private long mContentLength, mCreateTimestamp, mModifiedTimestamp, mSize; | ||||||
|     private long mQuotaUsedBytes, mQuotaAvailableBytes; |     private long mQuotaUsedBytes, mQuotaAvailableBytes; | ||||||
| @ -57,6 +59,9 @@ public class WebdavEntry { | |||||||
|             mPath = mUri.split(splitElement, 2)[1]; |             mPath = mUri.split(splitElement, 2)[1]; | ||||||
| 
 | 
 | ||||||
|             int status = ms.getStatus()[0].getStatusCode(); |             int status = ms.getStatus()[0].getStatusCode(); | ||||||
|  |             if ( status == CODE_PROP_NOT_FOUND ) { | ||||||
|  |                 status = ms.getStatus()[1].getStatusCode(); | ||||||
|  |             } | ||||||
|             DavPropertySet propSet = ms.getProperties(status); |             DavPropertySet propSet = ms.getProperties(status); | ||||||
|             @SuppressWarnings("rawtypes") |             @SuppressWarnings("rawtypes") | ||||||
|             DavProperty prop = propSet.get(DavPropertyName.DISPLAYNAME); |             DavProperty prop = propSet.get(DavPropertyName.DISPLAYNAME); | ||||||
|  | |||||||
| @ -39,8 +39,8 @@ import com.owncloud.android.lib.common.network.WebdavEntry; | |||||||
| 
 | 
 | ||||||
| public class RemoteFile implements Parcelable, Serializable { | public class RemoteFile implements Parcelable, Serializable { | ||||||
| 
 | 
 | ||||||
| 	/** Generated - should be refreshed every time the class changes!! */ |     /** Generated - should be refreshed every time the class changes!! */ | ||||||
| 	private static final long serialVersionUID = 532139091191390616L; |     private static final long serialVersionUID = 3130865437811248451L; | ||||||
| 
 | 
 | ||||||
| 	private String mRemotePath; | 	private String mRemotePath; | ||||||
| 	private String mMimeType; | 	private String mMimeType; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user