void initPresenter(Bundle savedInstanceState) { BasePresenter presenter = newPresenter(); mWeakReferencePresenter = new WeakReference<>(presenter); if (presenter != null) { // because the first onCreate won't be call otherwise (creation too late) presenter.onCreate(savedInstanceState); } }