Fixed an issue where you could share a list with a number (user id) instead of email

pull/14/head
Sam Bosley 14 years ago
parent d039f9cb2c
commit 4edb731be2

@ -161,8 +161,11 @@ public class PeopleContainer extends LinearLayout {
for(int i = 0; i < getChildCount(); i++) { for(int i = 0; i < getChildCount(); i++) {
TextView textView = getTextView(i); TextView textView = getTextView(i);
JSONObject person = PeopleContainer.createUserJson(textView); JSONObject person = PeopleContainer.createUserJson(textView);
if(person != null) if(person != null) {
people.put(person); String email = person.optString("email"); //$NON-NLS-1$
if (email.indexOf('@') != -1)
people.put(person);
}
} }
return people; return people;
} }

Loading…
Cancel
Save