mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-09-11 23:09:46 +00:00
![John Zhen Mo](/assets/img/avatar_default.png)
-Fixed activity binder memory leak in popup and background players. -Fixed out of bound window after removing last item on play queue. -Fixed MediaSourceManager continues to process update after disposed. -Changed play queue append to shuffle if queue is already shuffled.
17 lines
372 B
Java
17 lines
372 B
Java
package org.schabi.newpipe.player;
|
|
|
|
import android.os.Binder;
|
|
import android.support.annotation.NonNull;
|
|
|
|
class PlayerServiceBinder extends Binder {
|
|
private final BasePlayer basePlayer;
|
|
|
|
PlayerServiceBinder(@NonNull final BasePlayer basePlayer) {
|
|
this.basePlayer = basePlayer;
|
|
}
|
|
|
|
BasePlayer getPlayerInstance() {
|
|
return basePlayer;
|
|
}
|
|
}
|