mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-12-23 16:40:32 +00:00
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) {
|
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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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
Block a user