From e9e26a464e3e399abc565489a35d2db033a38271 Mon Sep 17 00:00:00 2001 From: masensio Date: Tue, 21 Jan 2014 11:45:53 +0100 Subject: [PATCH] OC-2489:Add new check to isSharedSupported --- .../operations/remote/OwnCloudServerCheckOperation.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/oc_framework/src/com/owncloud/android/oc_framework/operations/remote/OwnCloudServerCheckOperation.java b/oc_framework/src/com/owncloud/android/oc_framework/operations/remote/OwnCloudServerCheckOperation.java index e43f0618..9c5283c1 100644 --- a/oc_framework/src/com/owncloud/android/oc_framework/operations/remote/OwnCloudServerCheckOperation.java +++ b/oc_framework/src/com/owncloud/android/oc_framework/operations/remote/OwnCloudServerCheckOperation.java @@ -79,8 +79,12 @@ public class OwnCloudServerCheckOperation extends RemoteOperation { } public boolean isSharedSupported() { OwnCloudVersion shareServer = new OwnCloudVersion(OCVERSION_SHARED_SUPPORTED); - - return mOCVersionString.compareTo(shareServer) >= 0; + if (isOnline()) { + return mOCVersionString.compareTo(shareServer) >= 0; + } else { + return false; + } + } private boolean tryConnection(WebdavClient wc, String urlSt) { -- 2.11.0