Lines Matching refs:attachment
54 * View for a single attachment in conversation view. Shows download status and allows launching
55 * intents to act on an attachment.
106 * Render or update an attachment's view. This happens immediately upon instantiation, and
110 public void render(Attachment attachment, Uri accountUri, boolean loaderResult) {
115 mAttachment = attachment;
121 mSaveClicked = !attachment.isDownloading() ? false : mSaveClicked;
123 LogUtils.d(LOG_TAG, "got attachment list row: name=%s state/dest=%d/%d dled=%d" +
124 " contentUri=%s MIME=%s flags=%d", attachment.getName(), attachment.state,
125 attachment.destination, attachment.downloadedSize, attachment.contentUri,
126 attachment.getContentType(), attachment.flags);
128 if ((attachment.flags & Attachment.FLAG_DUMMY_ATTACHMENT) != 0) {
131 || !TextUtils.equals(attachment.getName(), prevAttachment.getName())) {
132 mTitle.setText(attachment.getName());
135 if (prevAttachment == null || attachment.size != prevAttachment.size) {
137 attachment.size);
138 mDisplayType = AttachmentUtils.getDisplayType(getContext(), attachment);
220 // Handles clicking the attachment
263 // If we can only preview the attachment, preview.
300 // and the attachment supports re-download