Fixed double tapping the replay button

pull/7014/head
litetex 2021-08-29 17:53:09 +02:00
rodzic 8bfd380b89
commit 703f1550d8
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -2765,7 +2765,9 @@ public final class Player implements
Log.d(TAG, "onPlayPause() called");
}
if (getPlayWhenReady()) {
if (getPlayWhenReady()
// When state is completed (replay button is shown) then (re)play and do not pause
&& currentState != STATE_COMPLETED) {
pause();
} else {
play();