From ceec034a4ffdd06426c2ba4fea14c2c7eac5efa0 Mon Sep 17 00:00:00 2001 From: Prathamesh More Date: Wed, 8 Jun 2022 23:20:43 +0530 Subject: [PATCH] Revert "Start audio fade animator on Main thread" This reverts commit 46f713e6884be08e00541e4fa0646cb2f6cb5a12. --- .../java/code/name/monkey/retromusic/service/AudioFader.kt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/src/main/java/code/name/monkey/retromusic/service/AudioFader.kt b/app/src/main/java/code/name/monkey/retromusic/service/AudioFader.kt index d79df4e43..009b0c40d 100644 --- a/app/src/main/java/code/name/monkey/retromusic/service/AudioFader.kt +++ b/app/src/main/java/code/name/monkey/retromusic/service/AudioFader.kt @@ -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() } } } \ No newline at end of file