mirror of
https://github.com/SimpleMobileTools/Simple-Voice-Recorder.git
synced 2025-06-05 21:59:31 +02:00
play the first recording at pressing Play at start
This commit is contained in:
@ -64,7 +64,9 @@ class PlayerFragment(context: Context, attributeSet: AttributeSet) : MyViewPager
|
||||
initMediaPlayer()
|
||||
|
||||
play_pause_btn.setOnClickListener {
|
||||
if (!playedRecordingIDs.empty() || player_progressbar.max > 0) {
|
||||
if (playedRecordingIDs.empty() || player_progressbar.max == 0) {
|
||||
next_btn.callOnClick()
|
||||
} else {
|
||||
togglePlayPause()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user