Remove unused PlayerServiceBinder
This commit is contained in:
parent
8c26403e91
commit
6fb0256997
|
@ -207,9 +207,7 @@ public final class PlayQueueActivity extends AppCompatActivity
|
|||
public void onServiceConnected(final ComponentName name, final IBinder service) {
|
||||
Log.d(TAG, "Player service is connected");
|
||||
|
||||
if (service instanceof PlayerServiceBinder) {
|
||||
player = ((PlayerServiceBinder) service).getPlayerInstance();
|
||||
} else if (service instanceof PlayerService.LocalBinder) {
|
||||
if (service instanceof PlayerService.LocalBinder) {
|
||||
player = ((PlayerService.LocalBinder) service).getPlayer();
|
||||
}
|
||||
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
package org.schabi.newpipe.player;
|
||||
|
||||
import android.os.Binder;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
class PlayerServiceBinder extends Binder {
|
||||
private final Player player;
|
||||
|
||||
PlayerServiceBinder(@NonNull final Player player) {
|
||||
this.player = player;
|
||||
}
|
||||
|
||||
Player getPlayerInstance() {
|
||||
return player;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue