Prevented autoplay of the next recording on delete (#37)

This commit is contained in:
Agnieszka C
2022-01-29 10:51:51 +01:00
parent aead0af63e
commit 846d40134f

View File

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