Made sure that DownloadService shuts down when appropriate
This commit is contained in:
parent
ea6085723b
commit
ea5768f50c
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue