mirror of
				https://github.com/TeamNewPipe/NewPipe
				synced 2025-11-04 09:13:00 +00:00 
			
		
		
		
	Apply suggestions from code review
Co-Authored-By: Tobias Groza <TobiGr@users.noreply.github.com>
This commit is contained in:
		@@ -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();
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user