diff --git a/app/src/main/java/org/schabi/newpipe/player/mediasession/PlayQueuePlaybackController.java b/app/src/main/java/org/schabi/newpipe/player/mediasession/PlayQueuePlaybackController.java index c377901f3..b7f0638e3 100644 --- a/app/src/main/java/org/schabi/newpipe/player/mediasession/PlayQueuePlaybackController.java +++ b/app/src/main/java/org/schabi/newpipe/player/mediasession/PlayQueuePlaybackController.java @@ -13,7 +13,7 @@ public class PlayQueuePlaybackController extends DefaultControlDispatcher { @Override public boolean dispatchSetPlayWhenReady(Player player, boolean playWhenReady) { - if(playWhenReady) { + if (playWhenReady) { callback.onPlay(); } else { callback.onPause(); diff --git a/app/src/main/java/org/schabi/newpipe/player/playback/CustomTrackSelector.java b/app/src/main/java/org/schabi/newpipe/player/playback/CustomTrackSelector.java index bc9290684..d51cf630d 100644 --- a/app/src/main/java/org/schabi/newpipe/player/playback/CustomTrackSelector.java +++ b/app/src/main/java/org/schabi/newpipe/player/playback/CustomTrackSelector.java @@ -68,7 +68,7 @@ public class CustomTrackSelector extends DefaultTrackSelector { TextTrackScore trackScore = new TextTrackScore( format, params, trackFormatSupport[trackIndex], selectedAudioLanguage); - if(formatHasLanguage(format, preferredTextLanguage)) { + if (formatHasLanguage(format, preferredTextLanguage)) { selectedGroup = trackGroup; selectedTrackIndex = trackIndex; selectedTrackScore = trackScore; @@ -89,4 +89,4 @@ public class CustomTrackSelector extends DefaultTrackSelector { new TrackSelection.Definition(selectedGroup, selectedTrackIndex), Assertions.checkNotNull(selectedTrackScore)); } -} \ No newline at end of file +}