diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2014-03-05 15:41:14 +0100 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2014-03-05 15:41:14 +0100 |
commit | 78312d71dd1f281f494a2a1c04e4a80f34898d2c (patch) | |
tree | 595d3f78836691fc8eb204a3102b8781c4e3bd14 /src/eu/siacs/conversations/ui/NewConversationActivity.java | |
parent | 79ec8b2e8128a1dc1d7d0962ce99e91fdaff8b98 (diff) |
reworked contact details
Diffstat (limited to 'src/eu/siacs/conversations/ui/NewConversationActivity.java')
-rw-r--r-- | src/eu/siacs/conversations/ui/NewConversationActivity.java | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/eu/siacs/conversations/ui/NewConversationActivity.java b/src/eu/siacs/conversations/ui/NewConversationActivity.java index 628a3047..4b323c26 100644 --- a/src/eu/siacs/conversations/ui/NewConversationActivity.java +++ b/src/eu/siacs/conversations/ui/NewConversationActivity.java @@ -39,7 +39,6 @@ import android.content.Intent; public class NewConversationActivity extends XmppActivity { - protected List<Contact> phoneContacts = new ArrayList<Contact>(); protected List<Contact> rosterContacts = new ArrayList<Contact>(); protected List<Contact> aggregatedContacts = new ArrayList<Contact>(); protected ListView contactsView; @@ -188,10 +187,10 @@ public class NewConversationActivity extends XmppActivity { @Override public boolean onItemLongClick(AdapterView<?> arg0, View arg1, int pos, long arg3) { - Contact clickedContact = aggregatedContacts.get(pos); - DialogContactDetails dialog = new DialogContactDetails(); - dialog.setContact(clickedContact); - dialog.show(getFragmentManager(), "details"); + Intent intent = new Intent(activity,ContactDetailsActivity.class); + intent.setAction(ContactDetailsActivity.ACTION_VIEW_CONTACT); + intent.putExtra("uuid", aggregatedContacts.get(pos).getUuid()); + startActivity(intent); return true; } }); @@ -278,12 +277,6 @@ public class NewConversationActivity extends XmppActivity { @Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { - case R.id.action_settings: - startActivity(new Intent(this, SettingsActivity.class)); - break; - case R.id.action_accounts: - startActivity(new Intent(this, ManageAccountActivity.class)); - break; case R.id.action_refresh_contacts: refreshContacts(); break; |