Skip to content
Snippets Groups Projects
Commit f5bd757c authored by Pierre Duchemin's avatar Pierre Duchemin
Browse files

Remove unused listener

Was previously used to add contact.
Avatar is now clickable: it opens conversation.

Change-Id: I9e1546fc6a8e6b7464a3e597faf27cf783910db6
parent 549cb128
No related branches found
No related tags found
No related merge requests found
......@@ -556,9 +556,4 @@ public class SmartListFragment extends BaseFragment<SmartListPresenter> implemen
public void onItemLongClick(SmartListViewModel smartListViewModel) {
presenter.conversationLongClicked(smartListViewModel);
}
@Override
public void onPhotoClick(SmartListViewModel smartListViewModel) {
presenter.photoClicked(smartListViewModel);
}
}
......@@ -53,15 +53,12 @@ public class SmartListViewHolder extends RecyclerView.ViewHolder {
clickListener.onItemLongClick(smartListViewModel);
return true;
});
photo.setOnClickListener(v -> clickListener.onPhotoClick(smartListViewModel));
}
public interface SmartListListeners {
void onItemClick(SmartListViewModel smartListViewModel);
void onItemLongClick(SmartListViewModel smartListViewModel);
void onPhotoClick(SmartListViewModel smartListViewModel);
}
}
......@@ -190,10 +190,6 @@ public class SmartListPresenter extends RootPresenter<SmartListView> implements
getView().displayConversationDialog(smartListViewModel);
}
public void photoClicked(SmartListViewModel smartListViewModel) {
// ignored
}
public void quickCallClicked() {
if (mCallContact != null) {
if (mCallContact.getPhones().size() > 1) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment