@Override public boolean onMenuItemClick(MenuItem item) { switch (item.getItemId()) { case R.id.action_commit: String content = etContent.getText().toString(); mAddSouenirPresenter.commit(content, imgfile); break; case R.id.fetch_picture: showDialog(); break; default: break; } return true; }
@Override public void initPresenter() { mAddSouenirPresenter.attachView(this); }