@Test public void dismissWithoutShowDoesNotDismissView() { presenter.takeView(view); presenter.dismiss(); verify(view, never()).dismiss(anyBoolean()); }
public void dismiss() { if (whatToShow != null) { whatToShow = null; if (!hasView()) return; Popup<D, R> popUp = getView(); if (popUp.isShowing()) popUp.dismiss(WITH_FLOURISH); } }
PopupPresenter extends Presenter<Popup<D, R>> { public void dismiss() { if (whatToShow != null) { whatToShow = null; if (!hasView()) return; Popup<D, R> popUp = getView(); if (popUp.isShowing()) popUp.dismiss(WITH_FLOURISH); } } }
PopupPresenter extends Presenter<Popup<D, R>> { public void dismiss() { if (whatToShow != null) { whatToShow = null; if (!hasView()) return; Popup<D, R> popUp = getView(); if (popUp.isShowing()) popUp.dismiss(WITH_FLOURISH); } } protected  PopupPresenter(String customStateKey); protected  PopupPresenter(); }
PopupPresenter extends Presenter<Popup<D, R>> { public void dismiss() { if (whatToShow != null) { whatToShow = null; if (!hasView()) return; Popup<D, R> popUp = getView(); if (popUp.isShowing()) popUp.dismiss(WITH_FLOURISH); } } protected  PopupPresenter(String customStateKey); protected  PopupPresenter(); D showing(); void show(D info); void dismiss(); final void onDismissed(R result); @Override void dropView(Popup<D, R> view); @Override void onLoad(Bundle savedInstanceState); @Override void onSave(Bundle outState); @Override void onExitScope(); }
PopupPresenter extends Presenter<Popup<D, R>> { public void dismiss() { if (whatToShow != null) { whatToShow = null; if (!hasView()) return; Popup<D, R> popUp = getView(); if (popUp.isShowing()) popUp.dismiss(WITH_FLOURISH); } } protected  PopupPresenter(String customStateKey); protected  PopupPresenter(); D showing(); void show(D info); void dismiss(); final void onDismissed(R result); @Override void dropView(Popup<D, R> view); @Override void onLoad(Bundle savedInstanceState); @Override void onSave(Bundle outState); @Override void onExitScope();  }