Prevent clicks when selecting messages

pull/176/head
M66B 5 years ago
parent 26eee7fd76
commit 6b09b5e5f7

@ -2337,11 +2337,11 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
@Override @Override
public void onClick(View view) { public void onClick(View view) {
final TupleMessageEx message = getMessage(); if (selectionTracker != null && selectionTracker.hasSelection())
if (message == null)
return; return;
if (selectionTracker != null && selectionTracker.isSelected(message.id)) final TupleMessageEx message = getMessage();
if (message == null)
return; return;
if (view.getId() == R.id.ibAvatar) if (view.getId() == R.id.ibAvatar)

Loading…
Cancel
Save