Added document icon

This commit is contained in:
M66B
2020-06-12 12:07:58 +02:00
parent eb5cbbd3df
commit beea08f6cc
2 changed files with 11 additions and 1 deletions

View File

@@ -115,7 +115,7 @@ public class AdapterAttachment extends RecyclerView.Adapter<AdapterAttachment.Vi
String extension = MimeTypeMap.getSingleton().getExtensionFromMimeType(attachment.getMimeType());
if (extension != null)
resid = context.getResources().getIdentifier("file_" + extension, "drawable", context.getPackageName());
ivType.setImageResource(resid == 0 ? R.drawable.baseline_attachment_24 : resid);
ivType.setImageResource(resid == 0 ? R.drawable.baseline_description_24 : resid);
tvName.setText(attachment.name);