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

Merge pull request #405 from owncloud/release/1.0.11

[Release] 1.0.11
This commit is contained in:
Abel García de Prada 2021-05-24 08:25:39 +02:00 committed by GitHub
commit abdbdbe4cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 12 deletions

View File

@ -25,8 +25,8 @@ android {
minSdkVersion 21 minSdkVersion 21
targetSdkVersion 29 targetSdkVersion 29
versionCode = 10001000 versionCode = 10001100
versionName = "1.0.10" versionName = "1.0.11"
} }
lintOptions { lintOptions {

View File

@ -52,17 +52,9 @@ public class AccountUtils {
*/ */
public static String getWebDavUrlForAccount(Context context, Account account) public static String getWebDavUrlForAccount(Context context, Account account)
throws AccountNotFoundException { throws AccountNotFoundException {
String webDavUrlForAccount = "";
try { return getBaseUrlForAccount(context, account) + OwnCloudClient.WEBDAV_FILES_PATH_4_0
OwnCloudCredentials ownCloudCredentials = getCredentialsForAccount(context, account); + AccountUtils.getUserId(account, context);
webDavUrlForAccount = getBaseUrlForAccount(context, account) + OwnCloudClient.WEBDAV_FILES_PATH_4_0
+ ownCloudCredentials.getUsername();
} catch (OperationCanceledException | AuthenticatorException | IOException e) {
Timber.e(e);
}
return webDavUrlForAccount;
} }
/** /**