diff --git a/owncloudComLibrary/build.gradle b/owncloudComLibrary/build.gradle index 97f583ba..175bb0bd 100644 --- a/owncloudComLibrary/build.gradle +++ b/owncloudComLibrary/build.gradle @@ -25,8 +25,8 @@ android { minSdkVersion 21 targetSdkVersion 29 - versionCode = 10001000 - versionName = "1.0.10" + versionCode = 10001100 + versionName = "1.0.11" } lintOptions { diff --git a/owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/accounts/AccountUtils.java b/owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/accounts/AccountUtils.java index 32e062ae..9db87f4b 100644 --- a/owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/accounts/AccountUtils.java +++ b/owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/accounts/AccountUtils.java @@ -52,17 +52,9 @@ public class AccountUtils { */ public static String getWebDavUrlForAccount(Context context, Account account) throws AccountNotFoundException { - String webDavUrlForAccount = ""; - try { - OwnCloudCredentials ownCloudCredentials = getCredentialsForAccount(context, account); - webDavUrlForAccount = getBaseUrlForAccount(context, account) + OwnCloudClient.WEBDAV_FILES_PATH_4_0 - + ownCloudCredentials.getUsername(); - } catch (OperationCanceledException | AuthenticatorException | IOException e) { - Timber.e(e); - } - - return webDavUrlForAccount; + return getBaseUrlForAccount(context, account) + OwnCloudClient.WEBDAV_FILES_PATH_4_0 + + AccountUtils.getUserId(account, context); } /**