diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 9339d7ae2..a503df39f 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -281,7 +281,7 @@ android:name="com.fsck.k9.activity.AccessibleEmailContentActivity" > - diff --git a/res/layout/item_list.xml b/res/layout/email_address_list.xml similarity index 100% rename from res/layout/item_list.xml rename to res/layout/email_address_list.xml diff --git a/res/layout/email_address_list_item.xml b/res/layout/email_address_list_item.xml new file mode 100755 index 000000000..f68e33ec6 --- /dev/null +++ b/res/layout/email_address_list_item.xml @@ -0,0 +1,9 @@ + diff --git a/src/com/fsck/k9/activity/ArrayItemList.java b/src/com/fsck/k9/activity/EmailAddressList.java similarity index 79% rename from src/com/fsck/k9/activity/ArrayItemList.java rename to src/com/fsck/k9/activity/EmailAddressList.java index 27a73ddc8..51abb1278 100644 --- a/src/com/fsck/k9/activity/ArrayItemList.java +++ b/src/com/fsck/k9/activity/EmailAddressList.java @@ -1,7 +1,5 @@ package com.fsck.k9.activity; -import java.util.ArrayList; - import android.content.Intent; import android.os.Bundle; import android.view.View; @@ -14,12 +12,12 @@ import android.widget.AdapterView.OnItemClickListener; import com.fsck.k9.R; import com.fsck.k9.helper.ContactItem; -public class ArrayItemList extends K9ListActivity implements OnItemClickListener { +public class EmailAddressList extends K9ListActivity implements OnItemClickListener { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); - setContentView(R.layout.item_list); + setContentView(R.layout.email_address_list); Intent i = getIntent(); ContactItem contact = (ContactItem) i.getSerializableExtra("contact"); @@ -27,7 +25,7 @@ public class ArrayItemList extends K9ListActivity implements OnItemClickListener return; } - ArrayAdapter adapter = new ArrayAdapter(this, android.R.layout.simple_list_item_1, contact.getEmailAddresses()); + ArrayAdapter adapter = new ArrayAdapter(this, R.layout.email_address_list_item, contact.getEmailAddresses()); ListView listView = getListView(); listView.setOnItemClickListener(this); @@ -39,7 +37,7 @@ public class ArrayItemList extends K9ListActivity implements OnItemClickListener public void onItemClick(AdapterView parent, View view, int position, long id) { String item = (String)parent.getItemAtPosition(position); - Toast.makeText(ArrayItemList.this, item, Toast.LENGTH_LONG).show(); + Toast.makeText(EmailAddressList.this, item, Toast.LENGTH_LONG).show(); Intent intent = new Intent(); intent.putExtra("EMAIL_ADDRESS", item); diff --git a/src/com/fsck/k9/activity/MessageCompose.java b/src/com/fsck/k9/activity/MessageCompose.java index b24bd1fad..2be31f1a1 100644 --- a/src/com/fsck/k9/activity/MessageCompose.java +++ b/src/com/fsck/k9/activity/MessageCompose.java @@ -1803,7 +1803,7 @@ public class MessageCompose extends K9Activity implements OnClickListener, OnFoc return; } if (contact.getEmailAddresses().size() > 1) { - Intent i = new Intent(this, ArrayItemList.class); + Intent i = new Intent(this, EmailAddressList.class); i.putExtra("contact", contact); if (requestCode == CONTACT_PICKER_TO) {