summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaniel oeh <daniel.oeh@gmail.com>2012-06-14 15:05:24 +0200
committerdaniel oeh <daniel.oeh@gmail.com>2012-06-14 15:05:24 +0200
commitea5768f50c5e03b9f88ac34db8824d50d9debda0 (patch)
tree8797d2084b2b51c05fd1688874fbc3ca87d69218
parentea6085723b0400031c608476f3a4814975133518 (diff)
downloadAntennaPod-ea5768f50c5e03b9f88ac34db8824d50d9debda0.zip
Made sure that DownloadService shuts down when appropriate
-rw-r--r--src/de/podfetcher/service/DownloadService.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/de/podfetcher/service/DownloadService.java b/src/de/podfetcher/service/DownloadService.java
index c9620be90..90ddd73cd 100644
--- a/src/de/podfetcher/service/DownloadService.java
+++ b/src/de/podfetcher/service/DownloadService.java
@@ -195,6 +195,7 @@ public class DownloadService extends Service {
// Save information of feed in DB
manager.updateFeed(service, feed);
+ queryDownloads();
}
/** Delete files that aren't needed anymore */
@@ -223,6 +224,7 @@ public class DownloadService extends Service {
image.setDownloaded(true);
requester.removeFeedImage(image);
manager.setFeedImage(service, image);
+ queryDownloads();
}
}
@@ -252,6 +254,7 @@ public class DownloadService extends Service {
Log.d(TAG, "Duration of file is " + media.getDuration());
mediaplayer.reset();
manager.setFeedMedia(service, media);
+ queryDownloads();
}
}
}