Controller becomes Fragment and Configuration disappears.
Change-Id: I432b16f8b617765e770a8b2be34632c10d5d913d
diff --git a/src/com/android/contacts/JoinContactActivity.java b/src/com/android/contacts/JoinContactActivity.java
index e555523..bacd0af 100644
--- a/src/com/android/contacts/JoinContactActivity.java
+++ b/src/com/android/contacts/JoinContactActivity.java
@@ -17,9 +17,8 @@
package com.android.contacts;
-import com.android.contacts.list.ContactEntryListConfiguration;
import com.android.contacts.list.JoinContactListAdapter;
-import com.android.contacts.list.JoinContactListConfiguration;
+import com.android.contacts.list.JoinContactListFragment;
import android.content.ContentUris;
import android.content.Intent;
@@ -72,7 +71,7 @@
private JoinContactListAdapter mAdapter;
@Override
- protected ContactEntryListConfiguration resolveIntent(Intent intent) {
+ protected boolean resolveIntent(Intent intent) {
mMode = MODE_PICK_CONTACT;
mTargetContactId = intent.getLongExtra(EXTRA_TARGET_CONTACT_ID, -1);
if (mTargetContactId == -1) {
@@ -80,15 +79,19 @@
+ EXTRA_TARGET_CONTACT_ID);
setResult(RESULT_CANCELED);
finish();
- return null;
+ return false;
}
- return new JoinContactListConfiguration(this, this);
+
+ mListFragment = new JoinContactListFragment();
+
+ return true;
}
@Override
- public void initContentView() {
- setContentView(mConfig.createView());
+ protected void onResume() {
+ super.onResume();
+ // TODO move this to onAttach of the corresponding fragment
TextView blurbView = (TextView)findViewById(R.id.join_contact_blurb);
String blurb = getString(R.string.blurbJoinContactDataWith,