From 259a85142190025b7540a8b5cebdab22d46bcff1 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Sun, 30 Apr 2017 13:23:36 -0700 Subject: Fix #794 error if null album when applying replaygain tags --- .../main/java/github/daneren2005/dsub/service/DownloadService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/src') diff --git a/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java b/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java index 636745d6..b32a042d 100644 --- a/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java +++ b/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java @@ -2600,7 +2600,7 @@ public class DownloadService extends Service { // Check forwards for(int i = index + 1; i < downloadList.size() && matched < REQUIRED_ALBUM_MATCHES; i++) { - if(albumName.equals(downloadList.get(i).getSong().getAlbum())) { + if(Util.equals(albumName, downloadList.get(i).getSong().getAlbum())) { matched++; } else { break; @@ -2609,7 +2609,7 @@ public class DownloadService extends Service { // Check backwards for(int i = index - 1; i >= 0 && matched < REQUIRED_ALBUM_MATCHES; i--) { - if(albumName.equals(downloadList.get(i).getSong().getAlbum())) { + if(Util.equals(albumName, downloadList.get(i).getSong().getAlbum())) { matched++; } else { break; -- cgit v1.2.3