Commit c61c0bd1 by aquilescanta Committed by Oliver Woodman

Cast demo: Fix a few miscellaneous bugs

PiperOrigin-RevId: 231801562
parent a7381916
...@@ -279,6 +279,8 @@ public class MainActivity extends AppCompatActivity ...@@ -279,6 +279,8 @@ public class MainActivity extends AppCompatActivity
int position = viewHolder.getAdapterPosition(); int position = viewHolder.getAdapterPosition();
if (playerManager.removeItem(position)) { if (playerManager.removeItem(position)) {
mediaQueueListAdapter.notifyItemRemoved(position); mediaQueueListAdapter.notifyItemRemoved(position);
// Update whichever item took its place, in case it became the new selected item.
mediaQueueListAdapter.notifyItemChanged(position);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment