From 3a0a98de51f1a74f6fe85d272e1f650c5c47fc53 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Mon, 18 Jan 2016 17:32:25 -0800 Subject: Fix issues with playing the same song twice in a row --- app/src/main/java/github/daneren2005/dsub/service/DownloadFile.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'app') 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 { private MusicService musicService; -- cgit v1.2.3