@Nullable @Override public View onCreateView( LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View root = inflater.inflate(R.layout.fragment_movie, container, false); ButterKnife.bind(this, root); EventBus.getDefault().register(this); mPresenter.setView(this); return root; }
private void saveMovie() { if (mAdapter.getDatum() != null) { mPresenter.save(mAdapter.getDatum()); toast("存储数据"); } }
@Override public void addSuccess() { toast("添加成功"); // 刷新数据 mPresenter.renderList(); }
private void importMovie() { mPresenter.addMoviesFromDisk(mAdapter.getDatum()); }
private void initData() { mPresenter.renderList(); // 获取最新本地数据 // scanNewMovie(); }