Skip to content

Commit

Permalink
fix bug: SINGLE_ONCE mode #47
Browse files Browse the repository at this point in the history
Set the playback mode to SINGLE_ONCE, will return to the first song when skip to previous.
  • Loading branch information
jrfeng committed Jul 11, 2023
1 parent bd050c8 commit c7db814
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion player/src/main/java/snow/player/SnowPlayer.java
Original file line number Diff line number Diff line change
Expand Up @@ -1686,7 +1686,8 @@ private int getPreviousPosition(int currentPosition) {
int position = 0;

switch (mPlayerState.getPlayMode()) {
case PLAYLIST_LOOP: // 注意!case 穿透
case PLAYLIST_LOOP: // 注意!case 穿透
case SINGLE_ONCE: // 注意!case 穿透
case LOOP:
position = currentPosition - 1;
if (position < 0) {
Expand Down

0 comments on commit c7db814

Please sign in to comment.