mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-02 19:10:11 +01:00
Refactoring
This commit is contained in:
@@ -154,7 +154,9 @@ public class AdapterAttachment extends RecyclerView.Adapter<AdapterAttachment.Vi
|
||||
int pos = getAdapterPosition();
|
||||
if (pos == RecyclerView.NO_POSITION)
|
||||
return;
|
||||
final EntityAttachment attachment = items.get(pos);
|
||||
EntityAttachment attachment = items.get(pos);
|
||||
if (attachment == null)
|
||||
return;
|
||||
|
||||
if (view.getId() == R.id.ibDelete)
|
||||
onDelete(attachment);
|
||||
|
||||
Reference in New Issue
Block a user