feat: add indicatives/hints of what type of media is on an media item without preview

This commit is contained in:
LucasGGamerM
2023-09-05 14:51:32 -03:00
parent 860cdb05e2
commit b6c951c026
2 changed files with 16 additions and 1 deletions

View File

@@ -85,7 +85,13 @@ public class FileStatusDisplayItem extends StatusDisplayItem{
domain.setText(item.status.sensitive ? context.getString(R.string.sensitive_content_explain) : null);
domain.setVisibility(item.status.sensitive ? View.VISIBLE : View.GONE);
icon.setImageDrawable(context.getDrawable(R.drawable.ic_fluent_image_24_regular));
if(item.attachment.type == Attachment.Type.IMAGE)
icon.setImageDrawable(context.getDrawable(R.drawable.ic_fluent_image_24_regular));
if(item.attachment.type == Attachment.Type.VIDEO)
icon.setImageDrawable(context.getDrawable(R.drawable.ic_fluent_video_clip_24_regular));
if(item.attachment.type == Attachment.Type.GIFV)
icon.setImageDrawable(context.getDrawable(R.drawable.ic_fluent_gif_24_regular));
}
}