mirror of
https://github.com/androidx/media.git
synced 2025-05-18 13:09:56 +08:00
Cast demo: Fix a few miscellaneous bugs
PiperOrigin-RevId: 231801562
This commit is contained in:
parent
a738191627
commit
c61c0bd1ac
@ -279,6 +279,8 @@ public class MainActivity extends AppCompatActivity
|
||||
int position = viewHolder.getAdapterPosition();
|
||||
if (playerManager.removeItem(position)) {
|
||||
mediaQueueListAdapter.notifyItemRemoved(position);
|
||||
// Update whichever item took its place, in case it became the new selected item.
|
||||
mediaQueueListAdapter.notifyItemChanged(position);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user