mirror of
https://github.com/samsonjs/media.git
synced 2026-06-28 05:29:33 +00:00
Cast demo: Fix a few miscellaneous bugs
PiperOrigin-RevId: 231801562
This commit is contained in:
parent
a738191627
commit
c61c0bd1ac
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Reference in a new issue