Fixed IllegalStateException when deleting multiple songs

This commit is contained in:
Prathamesh More 2021-11-15 11:26:59 +05:30
parent b2dbfd3083
commit 97c56f9e57
6 changed files with 25 additions and 15 deletions

View file

@ -281,7 +281,7 @@ class PlayerAlbumCoverFragment : AbsMusicServiceFragment(R.layout.fragment_playe
private fun updatePlayingQueue() {
binding.viewPager.apply {
adapter = AlbumCoverPagerAdapter(childFragmentManager, MusicPlayerRemote.playingQueue)
adapter!!.notifyDataSetChanged()
adapter?.notifyDataSetChanged()
currentItem = MusicPlayerRemote.position
onPageSelected(MusicPlayerRemote.position)
}