mirror of
				https://github.com/owncloud/android-library.git
				synced 2025-10-31 10:27:45 +00:00 
			
		
		
		
	Merge pull request #191 from karakayasemi/master
check for PROPERTY_VERSIONING is exist when learning capabilities
This commit is contained in:
		
						commit
						8e357d7811
					
				| @ -1,6 +1,7 @@ | |||||||
| /* ownCloud Android Library is available under MIT license | /* ownCloud Android Library is available under MIT license | ||||||
|  *   @author masensio |  *   @author masensio | ||||||
|  *   Copyright (C) 2016 ownCloud GmbH. |  *   @author Semih Serhat Karakaya <karakayasemi@itu.edu.tr> | ||||||
|  |  *   Copyright (C) 2018 ownCloud GmbH. | ||||||
|  * |  * | ||||||
|  *   Permission is hereby granted, free of charge, to any person obtaining a copy |  *   Permission is hereby granted, free of charge, to any person obtaining a copy | ||||||
|  *   of this software and associated documentation files (the "Software"), to deal |  *   of this software and associated documentation files (the "Software"), to deal | ||||||
| @ -245,8 +246,10 @@ public class GetRemoteCapabilitiesOperation extends RemoteOperation { | |||||||
|                                 capability.setFilesUndelete(CapabilityBooleanType.fromBooleanValue( |                                 capability.setFilesUndelete(CapabilityBooleanType.fromBooleanValue( | ||||||
|                                         respFiles.getBoolean(PROPERTY_UNDELETE))); |                                         respFiles.getBoolean(PROPERTY_UNDELETE))); | ||||||
|                             } |                             } | ||||||
|                             capability.setFilesVersioning(CapabilityBooleanType.fromBooleanValue( |                             if (respFiles.has(PROPERTY_VERSIONING)) { | ||||||
|                                     respFiles.getBoolean(PROPERTY_VERSIONING))); |                                 capability.setFilesVersioning(CapabilityBooleanType.fromBooleanValue( | ||||||
|  |                                         respFiles.getBoolean(PROPERTY_VERSIONING))); | ||||||
|  |                             } | ||||||
|                             Log_OC.d(TAG, "*** Added " + NODE_FILES); |                             Log_OC.d(TAG, "*** Added " + NODE_FILES); | ||||||
|                         } |                         } | ||||||
|                     } |                     } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user