Splitting off the Join Contact mode.
This is not a strategic refactoring, just a step
toward splitting Contacts List into multiple
classes.
Change-Id: I6ec5472ef31e87f62d7d62e31b4f413627a9b1f8
diff --git a/src/com/android/contacts/ViewContactActivity.java b/src/com/android/contacts/ViewContactActivity.java
index ead6a4a..c15a40d 100644
--- a/src/com/android/contacts/ViewContactActivity.java
+++ b/src/com/android/contacts/ViewContactActivity.java
@@ -685,11 +685,8 @@
if (mCursor.moveToFirst()) {
displayName = mCursor.getString(0);
}
- Intent intent = new Intent(ContactsListActivity.JOIN_AGGREGATE);
- intent.putExtra(ContactsListActivity.EXTRA_AGGREGATE_ID, freshId);
- if (displayName != null) {
- intent.putExtra(ContactsListActivity.EXTRA_AGGREGATE_NAME, displayName);
- }
+ Intent intent = new Intent(JoinContactActivity.JOIN_CONTACT);
+ intent.putExtra(JoinContactActivity.EXTRA_TARGET_CONTACT_ID, freshId);
startActivityForResult(intent, REQUEST_JOIN_CONTACT);
}
}