@Override public void toggleFullscreen(boolean enterFullscreen) { if (!enterFullscreen) { ContentVideoView videoView = ContentVideoView.getContentVideoView(); if (videoView != null) videoView.exitFullscreen(false); } if (mXWalkContentsClient != null) mXWalkContentsClient.onToggleFullscreen(enterFullscreen); }