From 7c5188a48d5b156039af55eb501a0b1e8b1756a3 Mon Sep 17 00:00:00 2001 From: Ricky Date: Sat, 30 Nov 2024 10:42:24 +0800 Subject: [PATCH] Check whether the player is playing or not in setupColors(). --- .../org/fossify/voicerecorder/fragments/PlayerFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/org/fossify/voicerecorder/fragments/PlayerFragment.kt b/app/src/main/kotlin/org/fossify/voicerecorder/fragments/PlayerFragment.kt index bd94513f..cf1e6232 100644 --- a/app/src/main/kotlin/org/fossify/voicerecorder/fragments/PlayerFragment.kt +++ b/app/src/main/kotlin/org/fossify/voicerecorder/fragments/PlayerFragment.kt @@ -357,7 +357,7 @@ class PlayerFragment(context: Context, attributeSet: AttributeSet) : MyViewPager } binding.playPauseBtn.background.applyColorFilter(properPrimaryColor) - binding.playPauseBtn.setImageDrawable(getToggleButtonIcon(false)) + binding.playPauseBtn.setImageDrawable(getToggleButtonIcon(getIsPlaying())) } fun finishActMode() = getRecordingsAdapter()?.finishActMode()