diff --git a/app/src/main/java/com/github/libretube/util/NowPlayingNotification.kt b/app/src/main/java/com/github/libretube/util/NowPlayingNotification.kt index f740a5f59..e1d9b5dc3 100644 --- a/app/src/main/java/com/github/libretube/util/NowPlayingNotification.kt +++ b/app/src/main/java/com/github/libretube/util/NowPlayingNotification.kt @@ -302,7 +302,9 @@ class NowPlayingNotification( PLAY_PAUSE -> { if (player.playerError != null) player.prepare() - if (player.isPlaying) player.pause() else player.play() + if (player.isPlaying) player.pause() + else if (player.playbackState == Player.STATE_ENDED) player.seekTo(0) + else player.play() } STOP -> {