Skip to content

Commit a09fab4

Browse files
committed
[Bug 16027] Check if mMediaController is null before showing it
1 parent c1ac6e3 commit a09fab4

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

engine/src/java/com/runrev/android/nativecontrol/ExtVideoView.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -373,12 +373,12 @@ public void onPrepared(MediaPlayer mp) {
373373
}
374374
if (mMediaController != null) {
375375
mMediaController.setEnabled(true);
376-
}
377376

378-
// PM-2015-10-19: [[ Bug 16027 ]] Show the controller once the player is prepared (as on iOS)
379-
if (isInPlaybackState()){
380-
mMediaController.show(0);
381-
}
377+
// PM-2015-10-19: [[ Bug 16027 ]] Show the controller once the player is prepared (as on iOS)
378+
if (isInPlaybackState()){
379+
mMediaController.show(0);
380+
}
381+
}
382382

383383
mVideoWidth = mp.getVideoWidth();
384384
mVideoHeight = mp.getVideoHeight();

0 commit comments

Comments
 (0)