Check download request before trying to remove it from the queue
Bug: 3312633 Change-Id: I443d9a8f786f93c7cd72b6b96ea838bf0d05f4d4
This commit is contained in:
parent
0e50c33ec7
commit
782c21e953
@ -16,12 +16,12 @@
|
||||
|
||||
package com.android.email.service;
|
||||
|
||||
import com.android.email.Controller.ControllerService;
|
||||
import com.android.email.Email;
|
||||
import com.android.email.ExchangeUtils.NullEmailService;
|
||||
import com.android.email.NotificationController;
|
||||
import com.android.email.Preferences;
|
||||
import com.android.email.Utility;
|
||||
import com.android.email.Controller.ControllerService;
|
||||
import com.android.email.ExchangeUtils.NullEmailService;
|
||||
import com.android.email.provider.AttachmentProvider;
|
||||
import com.android.email.provider.EmailContent;
|
||||
import com.android.email.provider.EmailContent.Account;
|
||||
@ -487,8 +487,10 @@ public class AttachmentDownloadService extends Service implements Runnable {
|
||||
return;
|
||||
}
|
||||
|
||||
// Remove the request from the queue
|
||||
// If the request is still in the queue, remove it
|
||||
if (req != null) {
|
||||
remove(req);
|
||||
}
|
||||
if (Email.DEBUG) {
|
||||
long secs = 0;
|
||||
if (req != null) {
|
||||
|
Loading…
Reference in New Issue
Block a user