mirror of
https://github.com/SimpleMobileTools/Simple-Voice-Recorder.git
synced 2025-01-25 13:38:48 +01:00
play the first recording at pressing Play at start
This commit is contained in:
parent
8e573df210
commit
4a9186304b
@ -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()
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user