aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2012-12-11 20:38:19 -0800
committerScott Jackson <daneren2005@gmail.com>2012-12-11 20:38:19 -0800
commit25ec94d7e28679b6c94809a6a8debd1f3ba2c9ad (patch)
tree0a119868a50aa8df592b04d94a5d8bc54e086c64 /subsonic-android/src
parentbb8624bb97135e3af222b29b9464fc6522ab64a3 (diff)
downloaddsub-25ec94d7e28679b6c94809a6a8debd1f3ba2c9ad.tar.gz
dsub-25ec94d7e28679b6c94809a6a8debd1f3ba2c9ad.tar.bz2
dsub-25ec94d7e28679b6c94809a6a8debd1f3ba2c9ad.zip
Don't kill download when changing between wifi and cell
Diffstat (limited to 'subsonic-android/src')
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/service/DownloadFile.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/service/DownloadFile.java b/subsonic-android/src/github/daneren2005/dsub/service/DownloadFile.java
index c7d5f542..bfb238d0 100644
--- a/subsonic-android/src/github/daneren2005/dsub/service/DownloadFile.java
+++ b/subsonic-android/src/github/daneren2005/dsub/service/DownloadFile.java
@@ -81,7 +81,9 @@ public class DownloadFile {
* Returns the effective bit rate.
*/
public int getBitRate() {
- bitRate = Util.getMaxBitrate(context);
+ if(!partialFile.exists()) {
+ bitRate = Util.getMaxBitrate(context);
+ }
if (bitRate > 0) {
return bitRate;
}