From 7aeb1ec8d90388d45b77817ccdd5f45491ab0aa7 Mon Sep 17 00:00:00 2001 From: Redirion Date: Mon, 7 Oct 2019 11:27:43 +0200 Subject: [PATCH] Apply suggestions from code review Co-Authored-By: Tobias Groza --- .../player/mediasession/PlayQueuePlaybackController.java | 2 +- .../schabi/newpipe/player/playback/CustomTrackSelector.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 +}