mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-09-19 02:54:03 +00:00
Fixed accidental reset of `PlaybackParameterDialog
` on initialization
This commit is contained in:
@@ -213,7 +213,7 @@ public class PlaybackParameterDialog extends DialogFragment {
|
||||
|
||||
getPitchControlModeComponentMappings()
|
||||
.forEach(this::setupPitchControlModeTextView);
|
||||
changePitchControlMode(isCurrentPitchControlModeSemitone());
|
||||
// Initialization is done at the end
|
||||
|
||||
// Pitch - Percent
|
||||
setText(binding.pitchPercentMinimumText, PlayerHelper::formatPitch, MIN_PITCH_OR_SPEED);
|
||||
@@ -275,6 +275,9 @@ public class PlaybackParameterDialog extends DialogFragment {
|
||||
skipSilence = isChecked;
|
||||
updateCallback();
|
||||
});
|
||||
|
||||
// PitchControlMode has to be initialized at the end because it requires the unhookCheckbox
|
||||
changePitchControlMode(isCurrentPitchControlModeSemitone());
|
||||
}
|
||||
|
||||
// -- General formatting --
|
||||
|
Reference in New Issue
Block a user