mirror of
				https://github.com/owncloud/android-library.git
				synced 2025-11-03 20:08:00 +00:00 
			
		
		
		
	check for PROPERTY_VERSIONING is exist when learning capabilities
This commit is contained in:
		
							parent
							
								
									38c84ed377
								
							
						
					
					
						commit
						813900d600
					
				@ -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