Revert "Start audio fade animator on Main thread"
This reverts commit 46f713e688
.
This commit is contained in:
parent
3660a8bd78
commit
ceec034a4f
1 changed files with 1 additions and 5 deletions
|
@ -3,8 +3,6 @@ package code.name.monkey.retromusic.service
|
|||
import android.animation.Animator
|
||||
import android.animation.ValueAnimator
|
||||
import android.media.MediaPlayer
|
||||
import android.os.Handler
|
||||
import android.os.Looper
|
||||
import androidx.core.animation.doOnEnd
|
||||
import code.name.monkey.retromusic.service.playback.Playback
|
||||
import code.name.monkey.retromusic.util.PreferenceUtil
|
||||
|
@ -59,9 +57,7 @@ class AudioFader {
|
|||
animator.doOnEnd {
|
||||
callback.run()
|
||||
}
|
||||
Handler(Looper.getMainLooper()).post {
|
||||
animator.start()
|
||||
}
|
||||
animator.start()
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue