Added document icon

pull/180/head
M66B 5 years ago
parent eb5cbbd3df
commit beea08f6cc

@ -115,7 +115,7 @@ public class AdapterAttachment extends RecyclerView.Adapter<AdapterAttachment.Vi
String extension = MimeTypeMap.getSingleton().getExtensionFromMimeType(attachment.getMimeType()); String extension = MimeTypeMap.getSingleton().getExtensionFromMimeType(attachment.getMimeType());
if (extension != null) if (extension != null)
resid = context.getResources().getIdentifier("file_" + extension, "drawable", context.getPackageName()); 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); tvName.setText(attachment.name);

@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M14,2L6,2c-1.1,0 -1.99,0.9 -1.99,2L4,20c0,1.1 0.89,2 1.99,2L18,22c1.1,0 2,-0.9 2,-2L20,8l-6,-6zM16,18L8,18v-2h8v2zM16,14L8,14v-2h8v2zM13,9L13,3.5L18.5,9L13,9z"/>
</vector>
Loading…
Cancel
Save