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
1 changed files with 1 additions and 1 deletions

View File

@ -274,7 +274,7 @@ class PlayerFragment(context: Context, attributeSet: AttributeSet) : MyViewPager
override fun playRecording(recording: Recording, playOnPrepared: Boolean) { override fun playRecording(recording: Recording, playOnPrepared: Boolean) {
resetProgress(recording) resetProgress(recording)
(recordings_list.adapter as RecordingsAdapter).updateCurrentRecording(recording.id) (recordings_list.adapter as RecordingsAdapter).updateCurrentRecording(recording.id)
playOnPreparation = playOnPrepared || getIsPlaying() playOnPreparation = playOnPrepared
player!!.apply { player!!.apply {
reset() reset()