diff options
author | mvn23 <schopdiedwaas@gmail.com> | 2022-07-12 22:31:05 +0200 |
---|---|---|
committer | mvn23 <schopdiedwaas@gmail.com> | 2022-07-12 22:31:05 +0200 |
commit | 21d7135cb4c1a595be8c8b73f67b5ed9345909cd (patch) | |
tree | f16cebc38b6f0ba467503651fdc84d27f78720db /app/src/main/java | |
parent | b17f6a4ab67247045a6de59c21f8c6983c7691c5 (diff) | |
download | dsub-21d7135cb4c1a595be8c8b73f67b5ed9345909cd.tar.gz dsub-21d7135cb4c1a595be8c8b73f67b5ed9345909cd.tar.bz2 dsub-21d7135cb4c1a595be8c8b73f67b5ed9345909cd.zip |
Change formatting as requested
Diffstat (limited to 'app/src/main/java')
-rw-r--r-- | app/src/main/java/github/daneren2005/dsub/domain/MusicDirectory.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/domain/MusicDirectory.java b/app/src/main/java/github/daneren2005/dsub/domain/MusicDirectory.java index bba969e4..a2b6d4ed 100644 --- a/app/src/main/java/github/daneren2005/dsub/domain/MusicDirectory.java +++ b/app/src/main/java/github/daneren2005/dsub/domain/MusicDirectory.java @@ -717,11 +717,9 @@ public class MusicDirectory implements Serializable { Integer rhsTrack = rhs.getTrack(); if(lhsTrack == rhsTrack) { return collator.compare(lhs.getTitle(), rhs.getTitle()); - } - if(lhsTrack != null && rhsTrack != null) { + } else if(lhsTrack != null && rhsTrack != null) { return lhsTrack.compareTo(rhsTrack); - } - if(lhsTrack != null) { + } else if(lhsTrack != null) { return -1; } return 1; |