aboutsummaryrefslogtreecommitdiff
path: root/src/github/daneren2005
diff options
context:
space:
mode:
Diffstat (limited to 'src/github/daneren2005')
-rw-r--r--src/github/daneren2005/dsub/service/StreamProxy.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/github/daneren2005/dsub/service/StreamProxy.java b/src/github/daneren2005/dsub/service/StreamProxy.java
index 24c1b201..d1b5983c 100644
--- a/src/github/daneren2005/dsub/service/StreamProxy.java
+++ b/src/github/daneren2005/dsub/service/StreamProxy.java
@@ -220,6 +220,13 @@ public class StreamProxy implements Runnable {
Thread.sleep(1000);
}
}
+
+ // When done, switch .partial to .complete
+ // Make sure that it is in saveWhenDone mode, and currently playing
+ if(downloadFile.isWorkDone() && !downloadFile.isCompleteFileAvailable() && downloadFile.getPlaying()) {
+ downloadFile.setPlaying(false);
+ downloadFile.setPlaying(true);
+ }
} else {
Log.w(TAG, "Requesting data for completely downloaded file");
}