We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d68fb87 commit a0e973cCopy full SHA for a0e973c
WordPressUtils/src/main/java/org/wordpress/android/util/UserEmail.java
@@ -8,6 +8,11 @@
8
import java.util.regex.Pattern;
9
10
public class UserEmail {
11
+ /**
12
+ * Get primary account and return its name if it matches the email address pattern.
13
+ *
14
+ * @return primary account email address if it can be found or empty string else.
15
+ */
16
public static String getPrimaryEmail(Context context) {
17
try {
18
AccountManager accountManager = AccountManager.get(context);
0 commit comments