mirror of
https://github.com/antebudimir/tempus.git
synced 2025-12-31 17:43:32 +00:00
fix: null checking
This commit is contained in:
parent
7ea159cb10
commit
a17de1de8d
1 changed files with 4 additions and 1 deletions
|
|
@ -66,6 +66,9 @@ public class ReplayGainUtil {
|
|||
}
|
||||
}
|
||||
|
||||
if (gains.size() == 0) gains.add(0, new ReplayGain());
|
||||
if (gains.size() == 1) gains.add(1, new ReplayGain());
|
||||
|
||||
return gains;
|
||||
}
|
||||
|
||||
|
|
@ -111,7 +114,7 @@ public class ReplayGainUtil {
|
|||
|
||||
private static void applyReplayGain(ExoPlayer player, List<ReplayGain> gains) {
|
||||
if (Objects.equals(Preferences.getReplayGainMode(), "auto")) {
|
||||
if(areTracksConsecutive(player)) {
|
||||
if (areTracksConsecutive(player)) {
|
||||
setAutoReplayGain(player, gains);
|
||||
} else {
|
||||
setTrackReplayGain(player, gains);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue