@Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { if (null != mListener) { Debtor debtor = (Debtor) mAdapter.getItem(position); mListener.onFragmentInteractionNewTransaction( null, null, debtor.getIdAsString(), debtor.getName()); } }
@Override public boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) { if (null != mListener) { Debtor debtor = (Debtor) mAdapter.getItem(position); mListener.onFragmentInteractionEdit( debtor.getIdAsString(), MyOnFragmentInteractionListener.ACTION_EDIT_DEBTOR); } return false; }