mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-12-22 08:00:32 +00:00
Fix not considering nullability when comparing getAudioTrackType
This commit is contained in:
parent
58ae7fbccb
commit
3a014d8d46
@ -874,6 +874,7 @@ public final class ListHelper {
|
|||||||
|
|
||||||
return Comparator.comparing(AudioStream::getAudioLocale, Comparator.nullsLast(
|
return Comparator.comparing(AudioStream::getAudioLocale, Comparator.nullsLast(
|
||||||
Comparator.comparing(locale -> locale.getDisplayName(appLoc))))
|
Comparator.comparing(locale -> locale.getDisplayName(appLoc))))
|
||||||
.thenComparing(AudioStream::getAudioTrackType);
|
.thenComparing(AudioStream::getAudioTrackType, Comparator.nullsLast(
|
||||||
|
Comparator.naturalOrder()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user