mirror of
https://github.com/deltachat/deltachat-android.git
synced 2025-10-03 09:49:21 +02:00
hide address in search results
This commit is contained in:
parent
68f270eea3
commit
86bd38bdad
1 changed files with 3 additions and 1 deletions
|
@ -134,6 +134,7 @@ public class ConversationListItem extends RelativeLayout
|
||||||
this.fromView.setText(recipient, state!=DcMsg.DC_STATE_IN_FRESH);
|
this.fromView.setText(recipient, state!=DcMsg.DC_STATE_IN_FRESH);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
subjectView.setVisibility(VISIBLE);
|
||||||
this.subjectView.setText(thread.getDisplayBody());
|
this.subjectView.setText(thread.getDisplayBody());
|
||||||
this.subjectView.setTypeface(state==DcMsg.DC_STATE_IN_FRESH ? BOLD_TYPEFACE : LIGHT_TYPEFACE);
|
this.subjectView.setTypeface(state==DcMsg.DC_STATE_IN_FRESH ? BOLD_TYPEFACE : LIGHT_TYPEFACE);
|
||||||
this.subjectView.setTextColor(state==DcMsg.DC_STATE_IN_FRESH ? ThemeUtil.getThemedColor(getContext(), R.attr.conversation_list_item_unread_color)
|
this.subjectView.setTextColor(state==DcMsg.DC_STATE_IN_FRESH ? ThemeUtil.getThemedColor(getContext(), R.attr.conversation_list_item_unread_color)
|
||||||
|
@ -177,7 +178,7 @@ public class ConversationListItem extends RelativeLayout
|
||||||
|
|
||||||
fromView.setText(getHighlightedSpan(contact.getDisplayName(), highlightSubstring));
|
fromView.setText(getHighlightedSpan(contact.getDisplayName(), highlightSubstring));
|
||||||
fromView.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, 0);
|
fromView.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, 0);
|
||||||
subjectView.setText(getHighlightedSpan(contact.getAddr(), highlightSubstring));
|
subjectView.setVisibility(GONE);
|
||||||
dateView.setText("");
|
dateView.setText("");
|
||||||
dateView.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, 0);
|
dateView.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, 0);
|
||||||
archivedBadgeView.setVisibility(GONE);
|
archivedBadgeView.setVisibility(GONE);
|
||||||
|
@ -201,6 +202,7 @@ public class ConversationListItem extends RelativeLayout
|
||||||
|
|
||||||
fromView.setText(recipient, true);
|
fromView.setText(recipient, true);
|
||||||
fromView.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, 0);
|
fromView.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, 0);
|
||||||
|
subjectView.setVisibility(VISIBLE);
|
||||||
subjectView.setText(getHighlightedSpan(messageResult.getSummarytext(512), highlightSubstring));
|
subjectView.setText(getHighlightedSpan(messageResult.getSummarytext(512), highlightSubstring));
|
||||||
|
|
||||||
long timestamp = messageResult.getTimestamp();
|
long timestamp = messageResult.getTimestamp();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue