fix:专辑列表播放主界面无反应

This commit is contained in:
Yutousama 2022-05-28 17:27:01 +08:00
parent 51f1b9494e
commit 0dedeaf301
2 changed files with 1 additions and 3 deletions

View File

@ -156,7 +156,7 @@ public class AlbumsActivity extends AppCompatActivity {
breakApp.setOnClickListener(v -> finish());
playAll.setOnClickListener(v -> {
MusicContainer.getInstance().setPlayList(new ArrayList<>(adapter.getMusicDatas()));
MusicContainer.getInstance().playNext();
browserHelper.play(MusicContainer.getInstance().getPlayList().get(0));
});
}

View File

@ -409,13 +409,11 @@ public class MainActivity extends AppCompatActivity {
@Override
public void onSessionDestroyed() {
super.onSessionDestroyed();
System.out.println("连接被销毁");
}
@Override
public void onQueueChanged(List<MediaSessionCompat.QueueItem> queue) {
super.onQueueChanged(queue);
System.out.println("不知道是啥变换了");
}
}