Refactoring

This commit is contained in:
M66B
2019-11-11 09:30:33 +01:00
parent 071ad5f85a
commit 884826b61b
7 changed files with 219 additions and 91 deletions

View File

@@ -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);