From 35b5aebdb322fa44e2c8173dbd9a5f5ef3c51c36 Mon Sep 17 00:00:00 2001 From: cketti Date: Fri, 3 Feb 2012 01:22:37 +0100 Subject: [PATCH] Add debug message when saving an attachment to SD card fails --- src/com/fsck/k9/view/AttachmentView.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/com/fsck/k9/view/AttachmentView.java b/src/com/fsck/k9/view/AttachmentView.java index bb736f6cc..f581c3db2 100644 --- a/src/com/fsck/k9/view/AttachmentView.java +++ b/src/com/fsck/k9/view/AttachmentView.java @@ -228,6 +228,9 @@ public class AttachmentView extends FrameLayout { attachmentSaved(file.toString()); new MediaScannerNotifier(mContext, file); } catch (IOException ioe) { + if (K9.DEBUG) { + Log.e(K9.LOG_TAG, "Error saving attachment", ioe); + } attachmentNotSaved(); } }