mirror of
https://github.com/austinried/subtracks.git
synced 2025-12-29 17:39:27 +01:00
fix player controls disabled on audio in other app
This commit is contained in:
parent
ff0464a156
commit
c58f860520
@ -225,16 +225,11 @@ const PlayerControls = () => {
|
|||||||
playPauseIcon = 'pause-circle'
|
playPauseIcon = 'pause-circle'
|
||||||
playPauseAction = pause
|
playPauseAction = pause
|
||||||
break
|
break
|
||||||
case State.Paused:
|
default:
|
||||||
disabled = false
|
disabled = false
|
||||||
playPauseIcon = 'play-circle'
|
playPauseIcon = 'play-circle'
|
||||||
playPauseAction = play
|
playPauseAction = play
|
||||||
break
|
break
|
||||||
default:
|
|
||||||
disabled = true
|
|
||||||
playPauseIcon = 'play-circle'
|
|
||||||
playPauseAction = undefined
|
|
||||||
break
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user