Null check VideoPlayer during view binding.
This commit is contained in:
parent
5c9d65386b
commit
b19bcd88b9
1 changed files with 3 additions and 1 deletions
|
@ -165,7 +165,9 @@ public final class VideoMediaPreviewFragment extends MediaPreviewFragment {
|
|||
|
||||
@Override
|
||||
public void setBottomButtonControls(@NonNull MediaPreviewPlayerControlView playerControlView) {
|
||||
videoView.setControlView(playerControlView);
|
||||
if (videoView != null) {
|
||||
videoView.setControlView(playerControlView);
|
||||
}
|
||||
updateSkipButtonState();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue