aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-08-08 16:33:53 -0700
committerScott Jackson <daneren2005@gmail.com>2014-08-08 16:33:53 -0700
commit91a9bcb5fb4710793b3a1774dbc7e995e432173a (patch)
tree545b97d78f571167d2e285e54143aed0bc2b14fd /src
parent1dfcec54e333fc52159ed2e87a8e33321057ae51 (diff)
downloaddsub-91a9bcb5fb4710793b3a1774dbc7e995e432173a.tar.gz
dsub-91a9bcb5fb4710793b3a1774dbc7e995e432173a.tar.bz2
dsub-91a9bcb5fb4710793b3a1774dbc7e995e432173a.zip
If nextSetup is true, use playNext regardless
If nextSetup is true, then the media player has already called setNextMediaPlayer. Since this is already inside of the onCompletion, there is a pretty good chance that the next media player is already playing. In this case we can't risk going into the condition where the current media player will be restarted.
Diffstat (limited to 'src')
-rw-r--r--src/github/daneren2005/dsub/service/DownloadService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/service/DownloadService.java b/src/github/daneren2005/dsub/service/DownloadService.java
index c4837260..250dcf37 100644
--- a/src/github/daneren2005/dsub/service/DownloadService.java
+++ b/src/github/daneren2005/dsub/service/DownloadService.java
@@ -1493,7 +1493,7 @@ public class DownloadService extends Service {
int pos = cachedPosition;
Log.i(TAG, "Ending position " + pos + " of " + duration);
- if (!isPartial || (downloadFile.isWorkDone() && (Math.abs(duration - pos) < 10000))) {
+ if (!isPartial || (downloadFile.isWorkDone() && (Math.abs(duration - pos) < 10000)) || nextSetup) {
playNext();
// Finished loading, delete when list is cleared