mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-19 16:19:33 +01:00
Improve handling of partially bi-directional text.
This commit is contained in:
@@ -65,7 +65,7 @@ public class MessageRequestsBottomView extends ConstraintLayout {
|
||||
if (recipient.isGroup()) {
|
||||
question.setText(R.string.MessageRequestBottomView_unblock_this_group_and_share_your_name_and_photo_with_its_members);
|
||||
} else {
|
||||
String name = recipient.getProfileName().isEmpty() ? recipient.getDisplayName(getContext()) : recipient.getProfileName().getGivenName();
|
||||
String name = recipient.getShortDisplayName(getContext());
|
||||
question.setText(HtmlCompat.fromHtml(getContext().getString(R.string.MessageRequestBottomView_do_you_want_to_let_s_message_you_wont_receive_any_messages_until_you_unblock_them, HtmlUtil.bold(name)), 0));
|
||||
}
|
||||
setActiveInactiveGroups(blockedButtons, normalButtons);
|
||||
@@ -77,7 +77,7 @@ public class MessageRequestsBottomView extends ConstraintLayout {
|
||||
question.setText(R.string.MessageRequestBottomView_do_you_want_to_join_this_group_they_wont_know_youve_seen_their_messages_until_you_accept);
|
||||
}
|
||||
} else {
|
||||
String name = recipient.getProfileName().isEmpty() ? recipient.getDisplayName(getContext()) : recipient.getProfileName().getGivenName();
|
||||
String name = recipient.getShortDisplayName(getContext());
|
||||
question.setText(HtmlCompat.fromHtml(getContext().getString(R.string.MessageRequestBottomView_do_you_want_to_let_s_message_you_they_wont_know_youve_seen_their_messages_until_you_accept, HtmlUtil.bold(name)), 0));
|
||||
}
|
||||
setActiveInactiveGroups(normalButtons, blockedButtons);
|
||||
|
||||
Reference in New Issue
Block a user