code: public void onResume(Object view) {
          getPresenter();
          if (presenter != null && !presenterHasView) {
              //noinspection unchecked
              presenter.takeView(view);
              presenterHasView = true;
          }
      }
docs: {@link android.app.Activity#onResume()},
  {@link android.app.Fragment#onResume()},
  {@link android.view.View#onAttachedToWindow()}