diff options
author | Scott Jackson <daneren2005@gmail.com> | 2012-12-11 20:38:19 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2012-12-11 20:38:19 -0800 |
commit | 25ec94d7e28679b6c94809a6a8debd1f3ba2c9ad (patch) | |
tree | 0a119868a50aa8df592b04d94a5d8bc54e086c64 /subsonic-android/src | |
parent | bb8624bb97135e3af222b29b9464fc6522ab64a3 (diff) | |
download | dsub-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.java | 4 |
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; } |