Merge pull request #90 from Aga-C/prevent-autoplay

Prevented autoplay of the next recording on delete (#37)
This commit is contained in:
Tibor Kaputa 2022-02-02 23:05:41 +01:00 committed by GitHub
commit 73fa0f64a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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