merge in jb-mr2-release history after reset to master
diff --git a/src/com/android/providers/downloads/DownloadThread.java b/src/com/android/providers/downloads/DownloadThread.java
index c60b02a..d19f71b 100644
--- a/src/com/android/providers/downloads/DownloadThread.java
+++ b/src/com/android/providers/downloads/DownloadThread.java
@@ -823,10 +823,10 @@
*/
private void notifyDownloadCompleted(
State state, int finalStatus, String errorMsg, int numFailed) {
+ notifyThroughDatabase(state, finalStatus, errorMsg, numFailed);
if (Downloads.Impl.isStatusCompleted(finalStatus)) {
mInfo.sendIntentIfRequested();
}
- notifyThroughDatabase(state, finalStatus, errorMsg, numFailed);
}
private void notifyThroughDatabase(