diff options
author | Jeff Sharkey <jsharkey@android.com> | 2016-10-14 23:37:22 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-10-14 23:37:22 +0000 |
commit | 9dd6606064f19c050ca6b96c845c4cb9a921813b (patch) | |
tree | c19b111aef28a52efc0147ef2bcd56dc423cc4b6 /src/com/android/providers/downloads/DownloadThread.java | |
parent | 34632f0d2a92fd7913dfc9b6a75edb34ce2fd41e (diff) | |
parent | f96f51e8d7386341ca209c795cc6621ab0608d45 (diff) | |
download | android_packages_providers_DownloadProvider-9dd6606064f19c050ca6b96c845c4cb9a921813b.tar.gz android_packages_providers_DownloadProvider-9dd6606064f19c050ca6b96c845c4cb9a921813b.tar.bz2 android_packages_providers_DownloadProvider-9dd6606064f19c050ca6b96c845c4cb9a921813b.zip |
Only send DOWNLOAD_COMPLETE broadcast once.
am: f96f51e8d7
Change-Id: I3a234d02ebf1a2bbdb52af82530d554417849d68
Diffstat (limited to 'src/com/android/providers/downloads/DownloadThread.java')
-rw-r--r-- | src/com/android/providers/downloads/DownloadThread.java | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/com/android/providers/downloads/DownloadThread.java b/src/com/android/providers/downloads/DownloadThread.java index 33436f57..c6b4c71a 100644 --- a/src/com/android/providers/downloads/DownloadThread.java +++ b/src/com/android/providers/downloads/DownloadThread.java @@ -382,11 +382,6 @@ public class DownloadThread extends Thread { } if (Downloads.Impl.isStatusCompleted(mInfoDelta.mStatus)) { - // If download was canceled, we already sent requested intent when - // deleted in the provider - if (mInfoDelta.mStatus != STATUS_CANCELED) { - mInfo.sendIntentIfRequested(); - } if (mInfo.shouldScanFile(mInfoDelta.mStatus)) { DownloadScanner.requestScanBlocking(mContext, mInfo.mId, mInfoDelta.mFileName, mInfoDelta.mMimeType); |