Skip to content
This repository was archived by the owner on Jan 12, 2025. It is now read-only.

Add the ability to retrieve the phone number/email/... #3

Closed
Shusshu opened this issue Jul 23, 2015 · 5 comments
Closed

Add the ability to retrieve the phone number/email/... #3

Shusshu opened this issue Jul 23, 2015 · 5 comments
Assignees
Milestone

Comments

@Shusshu
Copy link

Shusshu commented Jul 23, 2015

Add the ability to retrieve the phone number/email/... from the selected person.

To be able to display the name of the selected person but use his email/phone/... for the rest of the app

@lolobosse
Copy link
Collaborator

I do not really get what you want to do: does the getTextPattern xml attribute does the trick?

@Shusshu
Copy link
Author

Shusshu commented Jul 23, 2015

But this returns the data directly into the AutoCompleteTextView.
What if I want to display the Name is the AutoCompleteTextView and also get the phone number like this:

AutoCompleteTextView  myAutoCompleteTextView ...
myAutoCompleteTextView.getPhone()

or

myAutoCompleteTextView.getContact()

@manuelsilverio
Copy link

hey guys, What Wushu wants to do is to be able to retrieve a string of the name or number, so that would be adding another public method different than gettext.

public String getName(){
if(isSomeoneSelected()) {return selected.getName().toString();}
else{return null}
}

@lolobosse lolobosse modified the milestones: 0.2, 0.1.1 Jul 27, 2015
@lolobosse lolobosse self-assigned this Jul 27, 2015
lolobosse pushed a commit that referenced this issue Jul 27, 2015
@lolobosse
Copy link
Collaborator

Ok, implemented it as @manuelsilverio01 proposed.

Can you test it? It is not released yet, you have to compile the sources

@lolobosse lolobosse reopened this Jul 27, 2015
@Shusshu
Copy link
Author

Shusshu commented Jul 28, 2015

Perfect

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

No branches or pull requests

3 participants