mirror of
				https://github.com/TeamNewPipe/NewPipe
				synced 2025-10-31 07:13:00 +00:00 
			
		
		
		
	| @@ -15,6 +15,7 @@ import android.view.ViewGroup; | |||||||
| import android.widget.PopupMenu; | import android.widget.PopupMenu; | ||||||
| import android.widget.SeekBar; | import android.widget.SeekBar; | ||||||
|  |  | ||||||
|  | import androidx.annotation.Nullable; | ||||||
| import androidx.appcompat.app.AppCompatActivity; | import androidx.appcompat.app.AppCompatActivity; | ||||||
| import androidx.recyclerview.widget.ItemTouchHelper; | import androidx.recyclerview.widget.ItemTouchHelper; | ||||||
| import androidx.recyclerview.widget.LinearLayoutManager; | import androidx.recyclerview.widget.LinearLayoutManager; | ||||||
| @@ -456,6 +457,7 @@ public final class PlayQueueActivity extends AppCompatActivity | |||||||
|                                            final boolean playbackSkipSilence) { |                                            final boolean playbackSkipSilence) { | ||||||
|         if (player != null) { |         if (player != null) { | ||||||
|             player.setPlaybackParameters(playbackTempo, playbackPitch, playbackSkipSilence); |             player.setPlaybackParameters(playbackTempo, playbackPitch, playbackSkipSilence); | ||||||
|  |             onPlaybackParameterChanged(player.getPlaybackParameters()); | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|  |  | ||||||
| @@ -639,7 +641,7 @@ public final class PlayQueueActivity extends AppCompatActivity | |||||||
|         queueControlBinding.controlShuffle.setImageAlpha(shuffleAlpha); |         queueControlBinding.controlShuffle.setImageAlpha(shuffleAlpha); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     private void onPlaybackParameterChanged(final PlaybackParameters parameters) { |     private void onPlaybackParameterChanged(@Nullable final PlaybackParameters parameters) { | ||||||
|         if (parameters != null) { |         if (parameters != null) { | ||||||
|             if (menu != null && player != null) { |             if (menu != null && player != null) { | ||||||
|                 final MenuItem item = menu.findItem(R.id.action_playback_speed); |                 final MenuItem item = menu.findItem(R.id.action_playback_speed); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 TobiGr
					TobiGr