mirror of
				https://github.com/owncloud/android-library.git
				synced 2025-10-31 02:17:41 +00:00 
			
		
		
		
	Fix log with old server version
This commit is contained in:
		
							parent
							
								
									52463707c7
								
							
						
					
					
						commit
						03e30ae698
					
				| @ -381,11 +381,8 @@ public class OwnCloudClient extends HttpClient { | ||||
|      * cannot be invalidated with the given arguments. | ||||
|      */ | ||||
|     private boolean shouldInvalidateAccountCredentials(int httpStatusCode) { | ||||
|         boolean isServerVersionSupported = AccountUtils.getServerVersionForAccount(getAccount().getSavedAccount(), | ||||
|                 getContext()).isServerVersionSupported(); | ||||
| 
 | ||||
|         boolean shouldInvalidateAccountCredentials = | ||||
|                 (httpStatusCode == HttpConstants.HTTP_UNAUTHORIZED || !isServerVersionSupported); | ||||
|                 (httpStatusCode == HttpConstants.HTTP_UNAUTHORIZED); | ||||
| 
 | ||||
|         shouldInvalidateAccountCredentials &= (mCredentials != null &&         // real credentials | ||||
|                 !(mCredentials instanceof OwnCloudCredentialsFactory.OwnCloudAnonymousCredentials)); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user