mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-03 15:05:24 +00:00
Do not show contact address in subtitle.
This commit is contained in:
parent
e5f70bdbda
commit
dae0d30367
@ -144,10 +144,14 @@ public class ConversationTitleView extends RelativeLayout {
|
|||||||
private void setContactRecipientTitle(Recipient recipient) {
|
private void setContactRecipientTitle(Recipient recipient) {
|
||||||
this.title.setText(recipient.getName());
|
this.title.setText(recipient.getName());
|
||||||
|
|
||||||
if (recipient.getCustomLabel() != null) this.subtitle.setText(recipient.getCustomLabel());
|
if (TextUtils.isEmpty(recipient.getCustomLabel())) {
|
||||||
else this.subtitle.setText(recipient.getAddress().serialize());
|
this.subtitle.setText(null);
|
||||||
|
this.subtitle.setVisibility(View.GONE);
|
||||||
|
this.subtitleContainer.setVisibility(View.GONE);
|
||||||
|
} else {
|
||||||
|
this.subtitle.setText(recipient.getCustomLabel());
|
||||||
this.subtitle.setVisibility(View.VISIBLE);
|
this.subtitle.setVisibility(View.VISIBLE);
|
||||||
this.subtitleContainer.setVisibility(VISIBLE);
|
this.subtitleContainer.setVisibility(View.VISIBLE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user