Skip to content

Commit 92e7feb

Browse files
haggaieProfpatsch
authored andcommitted
PlayerService: return appropriate IBinder depending on the action
1 parent c0d229a commit 92e7feb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/src/main/java/org/schabi/newpipe/player/PlayerService.kt

+2-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,8 @@ class PlayerService : MediaBrowserServiceCompat() {
180180
}
181181

182182
override fun onBind(intent: Intent): IBinder? {
183-
if (SERVICE_INTERFACE == intent.getAction()) {
183+
if (SERVICE_INTERFACE == intent.action) {
184+
// For actions related to the media browser service, pass the onBind to the superclass
184185
return super.onBind(intent)
185186
}
186187
return mBinder

0 commit comments

Comments
 (0)