From 846d40134fbcb529955d8df4a76e125f1421296e Mon Sep 17 00:00:00 2001 From: Agnieszka C <85929121+Aga-C@users.noreply.github.com> Date: Sat, 29 Jan 2022 10:51:51 +0100 Subject: [PATCH] Prevented autoplay of the next recording on delete (#37) --- .../simplemobiletools/voicerecorder/fragments/PlayerFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/voicerecorder/fragments/PlayerFragment.kt b/app/src/main/kotlin/com/simplemobiletools/voicerecorder/fragments/PlayerFragment.kt index 02f5bc5..54a6fb4 100644 --- a/app/src/main/kotlin/com/simplemobiletools/voicerecorder/fragments/PlayerFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/voicerecorder/fragments/PlayerFragment.kt @@ -274,7 +274,7 @@ class PlayerFragment(context: Context, attributeSet: AttributeSet) : MyViewPager override fun playRecording(recording: Recording, playOnPrepared: Boolean) { resetProgress(recording) (recordings_list.adapter as RecordingsAdapter).updateCurrentRecording(recording.id) - playOnPreparation = playOnPrepared || getIsPlaying() + playOnPreparation = playOnPrepared player!!.apply { reset()