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

check for PROPERTY_VERSIONING is exist when learning capabilities

This commit is contained in:
Semih Serhat Karakaya 2018-05-22 16:26:48 +03:00 committed by karakayasemi
parent 38c84ed377
commit 813900d600

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)));
} }
if (respFiles.has(PROPERTY_VERSIONING)) {
capability.setFilesVersioning(CapabilityBooleanType.fromBooleanValue( capability.setFilesVersioning(CapabilityBooleanType.fromBooleanValue(
respFiles.getBoolean(PROPERTY_VERSIONING))); respFiles.getBoolean(PROPERTY_VERSIONING)));
}
Log_OC.d(TAG, "*** Added " + NODE_FILES); Log_OC.d(TAG, "*** Added " + NODE_FILES);
} }
} }