1
0
mirror of https://github.com/TeamNewPipe/NewPipe.git synced 2024-11-21 18:42:35 +01:00

Fix not considering nullability when comparing getAudioTrackType

This commit is contained in:
Stypox 2024-03-27 16:05:17 +01:00
parent 58ae7fbccb
commit 3a014d8d46
No known key found for this signature in database
GPG Key ID: 4BDF1B40A49FDD23

View File

@ -874,6 +874,7 @@ public final class ListHelper {
return Comparator.comparing(AudioStream::getAudioLocale, Comparator.nullsLast(
Comparator.comparing(locale -> locale.getDisplayName(appLoc))))
.thenComparing(AudioStream::getAudioTrackType);
.thenComparing(AudioStream::getAudioTrackType, Comparator.nullsLast(
Comparator.naturalOrder()));
}
}