From 3408ad11132d8fffc9cc3aa51f67406096499aae Mon Sep 17 00:00:00 2001 From: Marc Blank Date: Thu, 8 Mar 2012 20:09:27 -0800 Subject: [PATCH] Use proper column in loadAttachmentCallback Bug: 6138389 Change-Id: Icd9b3454670d29e1fbd1dfc309700eb1643cc9ee --- src/com/android/email/service/AttachmentDownloadService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/android/email/service/AttachmentDownloadService.java b/src/com/android/email/service/AttachmentDownloadService.java index 2fc87f099..7a72b6d6a 100644 --- a/src/com/android/email/service/AttachmentDownloadService.java +++ b/src/com/android/email/service/AttachmentDownloadService.java @@ -39,13 +39,13 @@ import com.android.email.NotificationController; import com.android.emailcommon.provider.Account; import com.android.emailcommon.provider.EmailContent; import com.android.emailcommon.provider.EmailContent.Attachment; +import com.android.emailcommon.provider.EmailContent.AttachmentColumns; import com.android.emailcommon.provider.EmailContent.Message; import com.android.emailcommon.service.EmailServiceProxy; import com.android.emailcommon.service.EmailServiceStatus; import com.android.emailcommon.service.IEmailServiceCallback; import com.android.emailcommon.utility.AttachmentUtilities; import com.android.emailcommon.utility.Utility; -import com.android.mail.providers.UIProvider.AttachmentColumns; import java.io.File; import java.io.FileDescriptor; @@ -676,7 +676,7 @@ public class AttachmentDownloadService extends Service implements Runnable { Attachment attachment = Attachment.restoreAttachmentWithId(mContext, attachmentId); if (attachment != null && statusCode == EmailServiceStatus.IN_PROGRESS) { ContentValues values = new ContentValues(); - values.put(AttachmentColumns.DOWNLOADED_SIZE, + values.put(AttachmentColumns.UI_DOWNLOADED_SIZE, attachment.mSize * progress / 100); // Update UIProvider with updated download size // Individual services will set contentUri and state when finished