From ae53a0c5ff7a0f808470c7424848baaeac3c000d Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Tue, 5 Oct 2010 06:03:51 +0000 Subject: [PATCH] broke addAttachmentView into its own sub --- src/com/fsck/k9/activity/MessageCompose.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/com/fsck/k9/activity/MessageCompose.java b/src/com/fsck/k9/activity/MessageCompose.java index 819caf208..8b8665f3f 100644 --- a/src/com/fsck/k9/activity/MessageCompose.java +++ b/src/com/fsck/k9/activity/MessageCompose.java @@ -1317,7 +1317,12 @@ public class MessageCompose extends K9Activity implements OnClickListener, OnFoc Log.v(K9.LOG_TAG, "old attachment.size: " + attachment.size); } Log.v(K9.LOG_TAG, "new attachment.size: " + attachment.size); + addAttachmentView(attachment); + } + + private void addAttachmentView(Attachment attachment) + { View view = getLayoutInflater().inflate(R.layout.message_compose_attachment, mAttachments, false); TextView nameView = (TextView)view.findViewById(R.id.attachment_name); ImageButton delete = (ImageButton)view.findViewById(R.id.attachment_delete);