skip to Main Content

Android Studio – How to refresh list item after sorting immediately

I have a music list obtained from: MusicDatabase.kt override fun getContentProviderValue(): MutableList<Songs> { val songList = mutableListOf<Songs>() val collection = sdk29AndUp { MediaStore.Audio.Media.getContentUri(MediaStore.VOLUME_EXTERNAL) } ?: MediaStore.Audio.Media.EXTERNAL_CONTENT_URI //Get songs from provider context.contentResolver.query( collection, projection, selection, null, PreferenceHelper.storeAllSongsSortOrder //Sort order. ).use {…

VIEW QUESTION
Back To Top
Search