Added reset in Playback speed dialog

This commit is contained in:
Prathamesh More 2022-01-07 19:59:10 +05:30
parent 456ecebef3
commit 508bfde5cb
2 changed files with 8 additions and 2 deletions

View file

@ -14,8 +14,8 @@ android {
vectorDrawables.useSupportLibrary = true vectorDrawables.useSupportLibrary = true
applicationId "code.name.monkey.retromusic" applicationId "code.name.monkey.retromusic"
versionCode 10558 versionCode 10559
versionName '5.6.2' versionName '5.6.3'
buildConfigField("String", "GOOGLE_PLAY_LICENSING_KEY", "\"${getProperty(getProperties('../public.properties'), 'GOOGLE_PLAY_LICENSE_KEY')}\"") buildConfigField("String", "GOOGLE_PLAY_LICENSING_KEY", "\"${getProperty(getProperties('../public.properties'), 'GOOGLE_PLAY_LICENSE_KEY')}\"")
} }

View file

@ -34,6 +34,12 @@ class PlaybackSpeedDialog : DialogFragment() {
binding.playbackPitchSlider.value binding.playbackPitchSlider.value
) )
} }
.setNeutralButton(R.string.reset_action) {_, _ ->
updatePlaybackAndPitch(
1F,
1F
)
}
.setView(binding.root) .setView(binding.root)
.create() .create()
.colorButtons() .colorButtons()