@Test public void onErrorListener_shouldShowCloseButton() throws Exception { initializeSubject(); subject.onCreate(); assertThat(getShadowVideoView().getOnErrorListener().onError(null, 0, 0)).isEqualTo(false); assertThat(getCloseButton().getVisibility()).isEqualTo(VISIBLE); }
@Override protected void onCreate() { super.onCreate(); mButtonSize = Dips.asIntPixels(CLOSE_BUTTON_SIZE, getContext()); mButtonPadding = Dips.asIntPixels(CLOSE_BUTTON_PADDING, getContext()); createInterstitialCloseButton(); mCloseButton.setVisibility(GONE); mVideoView.start(); }
MraidVideoViewController extends BaseVideoViewController { @Override protected void onCreate() { super.onCreate(); mButtonSize = Dips.asIntPixels(CLOSE_BUTTON_SIZE, getContext()); mButtonPadding = Dips.asIntPixels(CLOSE_BUTTON_PADDING, getContext()); createInterstitialCloseButton(); mCloseButton.setVisibility(GONE); mVideoView.start(); } }
MraidVideoViewController extends BaseVideoViewController { @Override protected void onCreate() { super.onCreate(); mButtonSize = Dips.asIntPixels(CLOSE_BUTTON_SIZE, getContext()); mButtonPadding = Dips.asIntPixels(CLOSE_BUTTON_PADDING, getContext()); createInterstitialCloseButton(); mCloseButton.setVisibility(GONE); mVideoView.start(); } MraidVideoViewController(final Context context, final Bundle bundle, final BaseVideoViewControllerListener baseVideoViewControllerListener); }
MraidVideoViewController extends BaseVideoViewController { @Override protected void onCreate() { super.onCreate(); mButtonSize = Dips.asIntPixels(CLOSE_BUTTON_SIZE, getContext()); mButtonPadding = Dips.asIntPixels(CLOSE_BUTTON_PADDING, getContext()); createInterstitialCloseButton(); mCloseButton.setVisibility(GONE); mVideoView.start(); } MraidVideoViewController(final Context context, final Bundle bundle, final BaseVideoViewControllerListener baseVideoViewControllerListener);  }
MraidVideoViewController extends BaseVideoViewController { @Override protected void onCreate() { super.onCreate(); mButtonSize = Dips.asIntPixels(CLOSE_BUTTON_SIZE, getContext()); mButtonPadding = Dips.asIntPixels(CLOSE_BUTTON_PADDING, getContext()); createInterstitialCloseButton(); mCloseButton.setVisibility(GONE); mVideoView.start(); } MraidVideoViewController(final Context context, final Bundle bundle, final BaseVideoViewControllerListener baseVideoViewControllerListener);   }