From c5851f2866dbe2334aef6e78eb1eaa40690696a7 Mon Sep 17 00:00:00 2001 From: Bao-Long Nguyen-Trong Date: Tue, 16 Feb 2010 06:53:02 +0000 Subject: [PATCH] Fixed issue 698: Set default attachment preview image in the code (and not only in layout) so that whne moving from a message to another we get the right preview --- src/com/fsck/k9/activity/MessageView.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/com/fsck/k9/activity/MessageView.java b/src/com/fsck/k9/activity/MessageView.java index 08d69daae..55c297816 100644 --- a/src/com/fsck/k9/activity/MessageView.java +++ b/src/com/fsck/k9/activity/MessageView.java @@ -1341,6 +1341,10 @@ public class MessageView extends K9Activity { attachmentIcon.setImageBitmap(previewIcon); } + else + { + attachmentIcon.setImageResource(R.drawable.attached_image_placeholder); + } mHandler.addAttachment(view); }