Lines Matching refs:mHeader
183 private ConversationItemViewModel mHeader;
510 if (mHeader != null) {
512 final boolean newlyBound = header.conversation.id != mHeader.conversation.id;
515 if (newlyBound || (!mHeader.displayableNames.equals(header.displayableNames))) {
527 mHeader = header;
551 if (mHeader.folderDisplayer == null) {
552 mHeader.folderDisplayer = new ConversationItemFolderDisplayer(mContext,
555 mHeader.folderDisplayer.reset();
567 mHeader.folderDisplayer.loadConversationFolders(mHeader.conversation,
571 if (mHeader.showDateText) {
573 mHeader.dateText = DateUtils.getRelativeTimeSpanString(mContext,
574 mHeader.conversation.dateMs);
577 mHeader.dateText = "";
590 if (mHeader.conversation.color != 0) {
595 mHeader.personalLevelBitmap = null;
596 final int personalLevel = mHeader.conversation.personalLevel;
598 mHeader.conversation.priority == UIProvider.ConversationPriority.IMPORTANT;
602 mHeader.personalLevelBitmap = useImportantMarkers ? IMPORTANT_ONLY_TO_ME
606 mHeader.personalLevelBitmap = useImportantMarkers ? IMPORTANT_TO_ME_AND_OTHERS
609 mHeader.personalLevelBitmap = IMPORTANT;
611 if (mHeader.personalLevelBitmap != null) {
651 return mHeader.conversation;
676 mHeader.viewWidth = mViewWidth;
681 mHeader.standardScaledDimen = res.getDimensionPixelOffset(R.dimen.standard_scaled_dimen);
713 createSubject(mHeader.unread);
717 if (!mHeader.isLayoutValid()) {
720 mHeader.validate();
734 if (mHeader != null && mHeader.folderDisplayer != null) {
735 foldersDesc = mHeader.folderDisplayer.getFoldersDesc();
739 mHeader.resetContentDescription();
740 setContentDescription(mHeader.getContentDescription(
751 final int insetPadding = mHeader.insetPadding;
767 setChecked(mCheckedConversationSet.contains(mHeader.conversation));
769 mHeader.gadgetMode = mGadgetMode;
773 mHeader.hasDraftMessage = mHeader.conversation.numDrafts() > 0;
776 if (mHeader.preserveSendersText) {
778 mHeader.sendersDisplayText = new SpannableStringBuilder(mHeader.sendersText);
780 } else if (mHeader.conversation.conversationInfo != null) {
782 mHeader.messageInfoString = SendersView
783 .createMessageInfo(context, mHeader.conversation, true);
785 mHeader.conversation.hasAttachments);
787 mHeader.mSenderAvatarModel.clear();
788 mHeader.displayableNames.clear();
789 mHeader.styledNames.clear();
791 SendersView.format(context, mHeader.conversation.conversationInfo,
792 mHeader.messageInfoString.toString(), maxChars, mHeader.styledNames,
793 mHeader.displayableNames, mHeader.mSenderAvatarModel,
802 if (mHeader.isLayoutValid()) {
812 mHeader.paperclip = null;
813 if (mHeader.conversation.hasAttachments) {
814 mHeader.paperclip = ATTACHMENT;
827 || mHeader.mSenderAvatarModel.isNotPopulated()) {
844 drawable.bind(mHeader.mSenderAvatarModel.getName(),
845 mHeader.mSenderAvatarModel.getEmailAddress());
862 mHeader.styledMessageInfoStringOffset, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
879 final String badgeText = mHeader.badgeText == null ? "" : mHeader.badgeText;
880 String subject = filterTag(getContext(), mHeader.conversation.subject);
909 final String snippet = mHeader.conversation.getSnippet();
913 final int folderWidth = mHeader.folderDisplayer.measureFolders(mCoordinates);
968 mHeader.dateText != null ? mHeader.dateText.toString() : "");
969 if (mHeader.infoIcon != null) {
971 mCoordinates.infoIconXRight - mHeader.infoIcon.getWidth();
997 if (mHeader.paperclip != null) {
1027 if (mHeader.preserveSendersText) {
1028 mHeader.sendersDisplayLayout = new StaticLayout(mHeader.sendersDisplayText, sPaint,
1031 final SpannableStringBuilder participantText = elideParticipants(mHeader.styledNames);
1064 final SpannableStringBuilder messageInfoString = mHeader.messageInfoString;
1132 mHeader.styledMessageInfoStringOffset = builder.length();
1185 boolean isUnread = mHeader.unread;
1188 if (mHeader.sendersDisplayLayout != null) {
1193 + mHeader.sendersDisplayLayout.getTopPadding());
1194 mHeader.sendersDisplayLayout.draw(canvas);
1213 mHeader.folderDisplayer.drawFolders(canvas, mCoordinates, ViewUtils.isViewRtl(this));
1218 sFoldersPaint.setColor(mHeader.conversation.color);
1227 if (mHeader.hasBeenRepliedTo && mHeader.hasBeenForwarded) {
1230 } else if (mHeader.hasBeenRepliedTo) {
1233 } else if (mHeader.hasBeenForwarded) {
1236 } else if (mHeader.isInvite) {
1243 canvas.drawBitmap(mHeader.personalLevelBitmap, mCoordinates.personalIndicatorX,
1248 if (mHeader.infoIcon != null) {
1249 canvas.drawBitmap(mHeader.infoIcon, mInfoIconX, mCoordinates.infoIconY, sPaint);
1256 drawText(canvas, mHeader.dateText, mDateX, mCoordinates.dateYBaseline, sPaint);
1259 if (mHeader.paperclip != null) {
1260 canvas.drawBitmap(mHeader.paperclip, mPaperclipX, mCoordinates.paperclipY, sPaint);
1339 return mHeader.conversation.starred ? STAR_ON : STAR_OFF;
1384 if (mHeader != null && mHeader.conversation != null && mCheckedConversationSet != null) {
1386 final Conversation conv = mHeader.conversation;
1437 mHeader.conversation.starred = !mHeader.conversation.starred;
1445 cursor.updateBoolean(mHeader.conversation, ConversationColumns.STARRED,
1446 mHeader.conversation.starred);
1467 return mHeader.gadgetMode == ConversationItemViewCoordinates.GADGET_CONTACT_PHOTO
1472 if (mHeader.infoIcon == null) {
1497 if (mHeader.infoIcon != null) {
1641 final int pos = list.findConversation(this, mHeader.conversation);
1642 list.performItemClick(this, pos, mHeader.conversation.id);