diff options
author | Scott Jackson <daneren2005@gmail.com> | 2016-01-18 17:32:25 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2016-01-18 17:32:25 -0800 |
commit | 3a0a98de51f1a74f6fe85d272e1f650c5c47fc53 (patch) | |
tree | 1b315c5e2461600e2740cb599df707994cc4f99e /app/src/main/java/github | |
parent | 4f87e7ba19d5d36322c2c783edf4b7b9c7874594 (diff) | |
download | dsub-3a0a98de51f1a74f6fe85d272e1f650c5c47fc53.tar.gz dsub-3a0a98de51f1a74f6fe85d272e1f650c5c47fc53.tar.bz2 dsub-3a0a98de51f1a74f6fe85d272e1f650c5c47fc53.zip |
Fix issues with playing the same song twice in a row
Diffstat (limited to 'app/src/main/java/github')
-rw-r--r-- | app/src/main/java/github/daneren2005/dsub/service/DownloadFile.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/service/DownloadFile.java b/app/src/main/java/github/daneren2005/dsub/service/DownloadFile.java index ac8b44d6..7044410b 100644 --- a/app/src/main/java/github/daneren2005/dsub/service/DownloadFile.java +++ b/app/src/main/java/github/daneren2005/dsub/service/DownloadFile.java @@ -379,7 +379,8 @@ public class DownloadFile implements BufferFile { return "DownloadFile (" + song + ")"; } - @Override + // Don't do this. Causes infinite loop if two instances of same song + /*@Override public boolean equals(Object o) { if (this == o) { return true; @@ -390,7 +391,7 @@ public class DownloadFile implements BufferFile { DownloadFile downloadFile = (DownloadFile) o; return Util.equals(this.getSong(), downloadFile.getSong()); - } + }*/ private class DownloadTask extends SilentBackgroundTask<Void> { private MusicService musicService; |