Open chat details when click on title in tablet mode too

This commit is contained in:
Arne 2025-01-23 15:22:24 +01:00
parent 3ebf01437d
commit c8a769ae5f

View file

@ -1568,6 +1568,11 @@ public class ConversationsActivity extends XmppActivity implements OnConversatio
AvatarWorkerTask.loadAvatar(conversation, binding.toolbarAvatar, R.dimen.muc_avatar_actionbar);
binding.toolbarAvatar.setVisibility(View.VISIBLE);
binding.toolbarTitle.setText(conversation.getName());
binding.toolbar.setOnClickListener((v) -> { if(!xmppConnectionService.isOnboarding()) openConversationDetails(conversation); });
ToolbarUtils.setActionBarOnClickListener(
binding.toolbar,
(v) -> { if(!xmppConnectionService.isOnboarding()) openConversationDetails(conversation); }
);
} else {
binding.toolbarTitle.setText(R.string.app_name);
binding.toolbar.setOnClickListener(null);