Fixed accidental reset of ``PlaybackParameterDialog`` on initialization

pull/8349/head
litetex 2022-05-03 21:42:09 +02:00
rodzic 0fef4e6e2e
commit c2bf7f09ce
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -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 --