1
0
mirror of https://github.com/owncloud/android-library.git synced 2025-06-07 16:06:08 +00:00

Merge pull request #191 from karakayasemi/master

check for PROPERTY_VERSIONING is exist when learning capabilities
This commit is contained in:
David González Verdugo 2018-06-22 10:37:28 +02:00 committed by GitHub
commit 8e357d7811
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
} }
} }