Skip to content

Commit

Permalink
update repeat mode init
Browse files Browse the repository at this point in the history
  • Loading branch information
KunMinX committed Sep 20, 2023
1 parent ca0acbd commit e7dd1f0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Jetpack-MusicPlayer 目标是:**一行代码即可接入 音乐播放控制组
1.在 build.gradle 中添加依赖。

```groovy
implementation 'com.kunminx.player:player:5.1.0'
implementation 'com.kunminx.player:player:5.2.0'
```

提示:本库托管于 Maven Central,请自行在根目录 build.gradle 添加 `mavenCentral()`
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ buildscript {
ext {
appTargetSdk = 33
appMinSdk = 15
appVersionCode = 50100
appVersionName = "5.1.0"
appVersionCode = 50200
appVersionName = "5.2.0"
lifecycleVersion = "2.4.1"
navigationVersion = "2.4.2"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ public void init(Context context, IServiceNotifier iServiceNotifier, ICacheProxy
mIServiceNotifier = iServiceNotifier;
mICacheProxy = iCacheProxy;
mPlayer = new ExoPlayer.Builder(context).build();
mCurrentPlay.setRepeatMode(mPlayingInfoManager.getRepeatMode());
}

public boolean isInit() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class PlayingInfoManager<B extends BaseAlbumItem<M, A>, M extends BaseMus
private int mAlbumIndex = 0;
private final List<M> mOriginPlayingList = new ArrayList<>();
private final List<M> mShufflePlayingList = new ArrayList<>();
private Enum<RepeatMode> mRepeatMode;
private Enum<RepeatMode> mRepeatMode = RepeatMode.LIST_CYCLE;

public enum RepeatMode {
SINGLE_CYCLE,
Expand Down

0 comments on commit e7dd1f0

Please sign in to comment.