Exemple #1
0
 @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;
 }
Exemple #2
0
 private void saveMovie() {
   if (mAdapter.getDatum() != null) {
     mPresenter.save(mAdapter.getDatum());
     toast("存储数据");
   }
 }
Exemple #3
0
 @Override
 public void addSuccess() {
   toast("添加成功");
   // 刷新数据
   mPresenter.renderList();
 }
Exemple #4
0
 private void importMovie() {
   mPresenter.addMoviesFromDisk(mAdapter.getDatum());
 }
Exemple #5
0
 private void initData() {
   mPresenter.renderList();
   // 获取最新本地数据
   //        scanNewMovie();
 }