Made sure that DownloadService shuts down when appropriate

This commit is contained in:
daniel oeh 2012-06-14 15:05:24 +02:00
parent ea6085723b
commit ea5768f50c
1 changed files with 3 additions and 0 deletions

View File

@ -195,6 +195,7 @@ public class DownloadService extends Service {
// Save information of feed in DB // Save information of feed in DB
manager.updateFeed(service, feed); manager.updateFeed(service, feed);
queryDownloads();
} }
/** Delete files that aren't needed anymore */ /** Delete files that aren't needed anymore */
@ -223,6 +224,7 @@ public class DownloadService extends Service {
image.setDownloaded(true); image.setDownloaded(true);
requester.removeFeedImage(image); requester.removeFeedImage(image);
manager.setFeedImage(service, image); manager.setFeedImage(service, image);
queryDownloads();
} }
} }
@ -252,6 +254,7 @@ public class DownloadService extends Service {
Log.d(TAG, "Duration of file is " + media.getDuration()); Log.d(TAG, "Duration of file is " + media.getDuration());
mediaplayer.reset(); mediaplayer.reset();
manager.setFeedMedia(service, media); manager.setFeedMedia(service, media);
queryDownloads();
} }
} }
} }