Update AbsPlayerFragment.kt

main
tva2000hn 2019-09-24 20:00:35 +07:00 committed by GitHub
parent 045cdf79f9
commit 608f5ca35a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -217,7 +217,7 @@ abstract class AbsPlayerFragment : AbsMusicServiceFragment(),
override fun doInBackground(vararg params: Song): Lyrics? { override fun doInBackground(vararg params: Song): Lyrics? {
try { try {
var data: String? = LyricUtil.getStringFromFile(params[0].title, params[0].artistName) var data: String? = LyricUtil.getStringFromFile(params[0].data, params[0].artistName)
return if (TextUtils.isEmpty(data)) { return if (TextUtils.isEmpty(data)) {
data = MusicUtil.getLyrics(params[0]) data = MusicUtil.getLyrics(params[0])
return if (TextUtils.isEmpty(data)) { return if (TextUtils.isEmpty(data)) {