fix media viewer auto play video
This commit is contained in:
parent
30c715fc36
commit
9b6c7d2331
1 changed files with 4 additions and 1 deletions
|
@ -465,7 +465,7 @@ public class MediaViewerActivity extends XmppActivity implements AudioManager.On
|
|||
|
||||
private void pausePlayer() {
|
||||
if (player != null && isVideo && isPlaying()) {
|
||||
player.setPlayWhenReady(true);
|
||||
player.setPlayWhenReady(false);
|
||||
player.getPlaybackState();
|
||||
if (Compatibility.runsTwentyFour() && isInPictureInPictureMode()) {
|
||||
hideFAB();
|
||||
|
@ -525,6 +525,9 @@ public class MediaViewerActivity extends XmppActivity implements AudioManager.On
|
|||
} else {
|
||||
hideFAB();
|
||||
}
|
||||
if (!isPlaying()) {
|
||||
startPlayer();
|
||||
}
|
||||
super.onResume();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue