tweak player view resume

This commit is contained in:
Akinwale Ariwodola 2020-06-05 09:34:45 +01:00
parent c73509a4ca
commit 6c24749ad5

View file

@ -665,6 +665,15 @@ public class FileViewFragment extends BaseFragment implements
setPlayerForPlayerView(); setPlayerForPlayerView();
MainActivity.playerReassigned = false; 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(); loadAndScheduleDurations();
} }