From 3c52f4d8c83561824abf09e8a5b44294a685860a Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 2 Apr 2020 18:55:34 +0200 Subject: [PATCH] use async preparation at the player fragment --- .../simplemobiletools/voicerecorder/fragments/PlayerFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/voicerecorder/fragments/PlayerFragment.kt b/app/src/main/kotlin/com/simplemobiletools/voicerecorder/fragments/PlayerFragment.kt index e800ded..8428ff8 100644 --- a/app/src/main/kotlin/com/simplemobiletools/voicerecorder/fragments/PlayerFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/voicerecorder/fragments/PlayerFragment.kt @@ -266,7 +266,7 @@ class PlayerFragment(context: Context, attributeSet: AttributeSet) : MyViewPager setDataSource(recording.path) } - prepare() + prepareAsync() } play_pause_btn.setImageDrawable(getToggleButtonIcon(true))