@Override public void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); ApplicationGraph graph = MoviegurApplication.getGraph(getActivity()); MoviesList.Movie movie = getArguments().getParcelable(KEY_MOVIE); presenter.onCreate(graph, this, movie); }
@Override public void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); PresenterRestorer restorer; if (savedInstanceState == null) { restorer = null; } else { restorer = new BundleBackedPresenterSaverRestorer(savedInstanceState); } MoviesListScreenListType type = (MoviesListScreenListType) getArguments().getSerializable(KEY_LIST_TYPE); presenter.onCreate(MoviegurApplication.getGraph(getActivity()), this, type, restorer); moviesListScreenAdapter = new MoviesListScreenAdapter(); moviesListScreenAdapter.setOnViewHolderClickListener(this); moviesListScreenAdapter.setDataSource(presenter); }