use emoji transform for toolbar and muc name
This commit is contained in:
parent
fd3b54aaff
commit
6c0b977a0e
|
@ -609,7 +609,7 @@ public class ConferenceDetailsActivity extends XmppActivity implements OnConvers
|
|||
String subject = mucOptions.getSubject();
|
||||
final boolean hasTitle;
|
||||
if (printableValue(roomName)) {
|
||||
this.binding.mucTitle.setText(roomName);
|
||||
this.binding.mucTitle.setText(EmojiWrapper.transform(roomName));
|
||||
this.binding.mucTitle.setVisibility(View.VISIBLE);
|
||||
hasTitle = true;
|
||||
} else if (!printableValue(subject)) {
|
||||
|
|
|
@ -74,6 +74,7 @@ import eu.siacs.conversations.ui.util.ActivityResult;
|
|||
import eu.siacs.conversations.ui.util.ConversationMenuConfigurator;
|
||||
import eu.siacs.conversations.ui.util.MenuDoubleTabUtil;
|
||||
import eu.siacs.conversations.ui.util.PendingItem;
|
||||
import eu.siacs.conversations.utils.EmojiWrapper;
|
||||
import eu.siacs.conversations.utils.ExceptionHelper;
|
||||
import eu.siacs.conversations.utils.XmppUri;
|
||||
import eu.siacs.conversations.xmpp.OnUpdateBlocklist;
|
||||
|
@ -567,7 +568,7 @@ public class ConversationsActivity extends XmppActivity implements OnConversatio
|
|||
if (mainFragment != null && mainFragment instanceof ConversationFragment) {
|
||||
final Conversation conversation = ((ConversationFragment) mainFragment).getConversation();
|
||||
if (conversation != null) {
|
||||
actionBar.setTitle(conversation.getName());
|
||||
actionBar.setTitle(EmojiWrapper.transform(conversation.getName()));
|
||||
actionBar.setDisplayHomeAsUpEnabled(true);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue