tweak player view resume
This commit is contained in:
parent
c73509a4ca
commit
6c24749ad5
1 changed files with 9 additions and 0 deletions
|
@ -665,6 +665,15 @@ public class FileViewFragment extends BaseFragment implements
|
|||
setPlayerForPlayerView();
|
||||
MainActivity.playerReassigned = false;
|
||||
}
|
||||
|
||||
View root = getView();
|
||||
if (root != null) {
|
||||
PlayerView playerView = root.findViewById(R.id.file_view_exoplayer_view);
|
||||
if (playerView.getPlayer() == null) {
|
||||
playerView.setPlayer(MainActivity.appPlayer);
|
||||
}
|
||||
}
|
||||
|
||||
loadAndScheduleDurations();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue