aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/github
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2017-04-30 13:23:36 -0700
committerScott Jackson <daneren2005@gmail.com>2017-04-30 13:23:36 -0700
commit259a85142190025b7540a8b5cebdab22d46bcff1 (patch)
treeaa4f57d6de5a1e7bb4d6a0feaebb8bb6c4c0e531 /app/src/main/java/github
parent03480abfb2bc64026a1d3ef37cc0613263e6779a (diff)
downloaddsub-259a85142190025b7540a8b5cebdab22d46bcff1.tar.gz
dsub-259a85142190025b7540a8b5cebdab22d46bcff1.tar.bz2
dsub-259a85142190025b7540a8b5cebdab22d46bcff1.zip
Fix #794 error if null album when applying replaygain tags
Diffstat (limited to 'app/src/main/java/github')
-rw-r--r--app/src/main/java/github/daneren2005/dsub/service/DownloadService.java4
1 files changed, 2 insertions, 2 deletions
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;