Cleanup for dump() in AttachmentDownloadService

Change-Id: Id875d3278953ecb3a98ab8b1d290f3883e974c4f
This commit is contained in:
Marc Blank 2010-10-26 14:53:18 -07:00
parent 4a66884b74
commit eed42e83ab
1 changed files with 2 additions and 1 deletions

View File

@ -626,7 +626,7 @@ public class AttachmentDownloadService extends Service implements Runnable {
Attachment att = Attachment.restoreAttachmentWithId(mContext, req.attachmentId);
if (att == null) {
pw.println(" Attachment not in database?");
} else {
} else if (att.mFileName != null) {
String fileName = att.mFileName;
String suffix = "[none]";
int lastDot = fileName.lastIndexOf('.');
@ -642,6 +642,7 @@ public class AttachmentDownloadService extends Service implements Runnable {
pw.print(att.mMimeType);
} else {
pw.print(AttachmentProvider.inferMimeType(fileName, null));
pw.print(" [inferred]");
}
pw.println(" Size: " + att.mSize);
}