1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-28 02:37:16 +00:00

Prevent clicks when selecting messages

This commit is contained in:
M66B 2020-03-12 10:00:20 +01:00
parent 26eee7fd76
commit 6b09b5e5f7

View file

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