1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-12-23 16:40:32 +00:00

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) { public void onServiceConnected(final ComponentName name, final IBinder service) {
Log.d(TAG, "Player service is connected"); Log.d(TAG, "Player service is connected");
if (service instanceof PlayerServiceBinder) { if (service instanceof PlayerService.LocalBinder) {
player = ((PlayerServiceBinder) service).getPlayerInstance();
} else if (service instanceof PlayerService.LocalBinder) {
player = ((PlayerService.LocalBinder) service).getPlayer(); 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;
}
}