aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authormvn23 <schopdiedwaas@gmail.com>2022-07-12 22:31:05 +0200
committermvn23 <schopdiedwaas@gmail.com>2022-07-12 22:31:05 +0200
commit21d7135cb4c1a595be8c8b73f67b5ed9345909cd (patch)
treef16cebc38b6f0ba467503651fdc84d27f78720db /app
parentb17f6a4ab67247045a6de59c21f8c6983c7691c5 (diff)
downloaddsub-21d7135cb4c1a595be8c8b73f67b5ed9345909cd.tar.gz
dsub-21d7135cb4c1a595be8c8b73f67b5ed9345909cd.tar.bz2
dsub-21d7135cb4c1a595be8c8b73f67b5ed9345909cd.zip
Change formatting as requested
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/github/daneren2005/dsub/domain/MusicDirectory.java6
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;