Prevented autoplay of the next recording on delete (#37)
This commit is contained in:
parent
aead0af63e
commit
846d40134f
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue