Skip to content

Commit dfa803f

Browse files
committed
Pass the extras bundle to the playFromMediaId instead of null
1 parent 852e68e commit dfa803f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mediacontroller/src/main/java/com/example/android/mediacontroller/MediaAppControllerActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1143,7 +1143,7 @@ public void onBindViewHolder(@NonNull ViewHolder holder, int position) {
11431143
}
11441144
if (item.isPlayable() && mController != null) {
11451145
mController.getTransportControls().playFromMediaId(item.getMediaId(),
1146-
null);
1146+
item.getDescription().getExtras());
11471147
}
11481148
});
11491149
}

0 commit comments

Comments
 (0)