Remove unused PlayerServiceBinder

This commit is contained in:
Stypox 2022-04-14 18:43:54 +02:00
parent 8c26403e91
commit 6fb0256997
No known key found for this signature in database
GPG Key ID: 4BDF1B40A49FDD23
2 changed files with 1 additions and 20 deletions

View File

@ -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();
}

View File

@ -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;
}
}