🙆🏻Ohh god removed AsyncTask finally
This commit is contained in:
parent
069d45e8df
commit
a7e55cc5bf
1 changed files with 2 additions and 5 deletions
|
@ -1,6 +1,5 @@
|
|||
package code.name.monkey.retromusic.fragments.base
|
||||
|
||||
import android.annotation.SuppressLint
|
||||
import android.content.ContentUris
|
||||
import android.content.Intent
|
||||
import android.media.MediaMetadataRetriever
|
||||
|
@ -194,7 +193,6 @@ abstract class AbsPlayerFragment(@LayoutRes layout: Int) : AbsMainActivityFragme
|
|||
updateLyrics()
|
||||
}
|
||||
|
||||
@SuppressLint("StaticFieldLeak")
|
||||
fun updateIsFavorite() {
|
||||
lifecycleScope.launch(IO) {
|
||||
val playlist: PlaylistEntity = repository.favoritePlaylist().first()
|
||||
|
@ -214,7 +212,6 @@ abstract class AbsPlayerFragment(@LayoutRes layout: Int) : AbsMainActivityFragme
|
|||
}
|
||||
}
|
||||
|
||||
@SuppressLint("StaticFieldLeak")
|
||||
private fun updateLyrics() {
|
||||
setLyrics(null)
|
||||
lifecycleScope.launch(IO) {
|
||||
|
|
Loading…
Reference in a new issue