Fix adding new playback speed preset when service is not running (#6734)

This commit is contained in:
Vinod Patil 2023-11-01 19:09:10 +05:30 committed by GitHub
parent 01f1927770
commit 691ed73910
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ public class VariableSpeedDialog extends BottomSheetDialogFragment {
}
private void addCurrentSpeed() {
float newSpeed = controller.getCurrentPlaybackSpeedMultiplier();
float newSpeed = speedSeekBar.getCurrentSpeed();
if (selectedSpeeds.contains(newSpeed)) {
Snackbar.make(addCurrentSpeedChip,
getString(R.string.preset_already_exists, newSpeed), Snackbar.LENGTH_LONG).show();