Skip to content

Commit a0e973c

Browse files
committed
document getPrimaryEmail method
1 parent d68fb87 commit a0e973c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

WordPressUtils/src/main/java/org/wordpress/android/util/UserEmail.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
import java.util.regex.Pattern;
99

1010
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+
*/
1116
public static String getPrimaryEmail(Context context) {
1217
try {
1318
AccountManager accountManager = AccountManager.get(context);

0 commit comments

Comments
 (0)