Skip to content
Snippets Groups Projects
Commit 1ecc31e4 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Removed unnecessary account handling code for now

parent 12164856
No related branches found
No related tags found
No related merge requests found
......@@ -81,12 +81,12 @@ public class Identity extends AIdentity<Identity> {
}
private String defaultNick() {
return CompatibilityUtils.accountNick("quassel").replaceAll("(^[\\d-]+|[^A-Za-z0-9\\x5b-\\x60\\x7b-\\x7d])", "");
return "quassel";
}
private String defaultRealName() {
return CompatibilityUtils.accountNick("Quassel IRC User");
return "Quassel IRC User";
}
@Override
......
......@@ -94,19 +94,6 @@ public class CompatibilityUtils {
return def;
}
public static String accountNick(String defaultValue) {
Pattern emailPattern = Patterns.EMAIL_ADDRESS;
AccountManager accountManager = AccountManager.get(QuasselDroidNG.context());
Account[] accounts = accountManager.getAccounts();
for (Account account : accounts) {
if (emailPattern.matcher(account.name).matches()) {
String possibleEmail = account.name;
Log.e("DEBUG", account.name + ":" + account.type);
}
}
return defaultValue;
}
/**
* Because Android’s String::split is broken
* @param str The string to be broken into chars
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment