New chat discussion launches contact list
This commit is contained in:
parent
0807e6c5cd
commit
b23e7973ed
2 changed files with 5 additions and 1 deletions
|
@ -114,7 +114,7 @@ public class ChatListFragment extends Fragment implements OnClickListener, OnIte
|
|||
chatList.setAdapter(new ChatListAdapter());
|
||||
}
|
||||
else if (id == R.id.newDiscussion) {
|
||||
//TODO : Create a new conversation
|
||||
LinphoneActivity.instance().displayContacts();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -270,6 +270,10 @@ public class LinphoneActivity extends FragmentActivity implements OnClickListene
|
|||
changeCurrentFragment(FragmentsAvailable.CONTACT, extras);
|
||||
}
|
||||
|
||||
public void displayContacts() {
|
||||
changeCurrentFragment(FragmentsAvailable.CONTACTS, null);
|
||||
}
|
||||
|
||||
public void displayChat(String sipUri) {
|
||||
LinphoneAddress lAddress = LinphoneCoreFactory.instance().createLinphoneAddress(sipUri);
|
||||
Uri uri = LinphoneUtils.findUriPictureOfContactAndSetDisplayName(lAddress, getContentResolver());
|
||||
|
|
Loading…
Reference in a new issue