1
0
mirror of https://github.com/owncloud/android-library.git synced 2026-08-21 21:33:08 +00:00

Removed duplication of OwnCloudClientManager#getClientFor methods with different parameter types

This commit is contained in:
David A. Velasco
2014-06-13 12:42:40 +02:00
parent 0c4954928b
commit 9be1323745
6 changed files with 27 additions and 18 deletions
@@ -200,6 +200,9 @@ public class AccountUtils {
public static String buildAccountName(Uri serverBaseUrl, String username) {
if (serverBaseUrl.getScheme() == null) {
serverBaseUrl = Uri.parse("https://" + serverBaseUrl.toString());
}
String accountName = username + "@" + serverBaseUrl.getHost();
if (serverBaseUrl.getPort() >= 0) {
accountName += ":" + serverBaseUrl.getPort();