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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user