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