Skip to content

Commit

Permalink
fix(PlayControlsFAB): 更新播放控制悬浮按钮图标和标签,优化缓冲状态显示
Browse files Browse the repository at this point in the history
  • Loading branch information
thoulee21 committed Dec 14, 2024
1 parent 5494c3b commit dcae213
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/components/PlayControlsFAB.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,12 @@ export const PlayControlsFAB = () => {
return (
<Portal>
<FAB.Group
icon={playing
? 'pause-circle-outline'
: 'play-circle-outline'}
icon={bufferingDuringPlay
? 'loading'
: playing ? 'pause' : 'play'}
open={open}
visible={!!track}
label={
!bufferingDuringPlay
? playing ? 'Pause' : 'Play'
: 'Buffering...'
}
variant="secondary"
toggleStackOnLongPress
onPress={() => {
HapticFeedback.trigger(
Expand Down

0 comments on commit dcae213

Please sign in to comment.