fix:专辑列表播放主界面无反应
This commit is contained in:
parent
51f1b9494e
commit
0dedeaf301
@ -156,7 +156,7 @@ public class AlbumsActivity extends AppCompatActivity {
|
|||||||
breakApp.setOnClickListener(v -> finish());
|
breakApp.setOnClickListener(v -> finish());
|
||||||
playAll.setOnClickListener(v -> {
|
playAll.setOnClickListener(v -> {
|
||||||
MusicContainer.getInstance().setPlayList(new ArrayList<>(adapter.getMusicDatas()));
|
MusicContainer.getInstance().setPlayList(new ArrayList<>(adapter.getMusicDatas()));
|
||||||
MusicContainer.getInstance().playNext();
|
browserHelper.play(MusicContainer.getInstance().getPlayList().get(0));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -409,13 +409,11 @@ public class MainActivity extends AppCompatActivity {
|
|||||||
@Override
|
@Override
|
||||||
public void onSessionDestroyed() {
|
public void onSessionDestroyed() {
|
||||||
super.onSessionDestroyed();
|
super.onSessionDestroyed();
|
||||||
System.out.println("连接被销毁");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onQueueChanged(List<MediaSessionCompat.QueueItem> queue) {
|
public void onQueueChanged(List<MediaSessionCompat.QueueItem> queue) {
|
||||||
super.onQueueChanged(queue);
|
super.onQueueChanged(queue);
|
||||||
System.out.println("不知道是啥变换了");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user