From c7c4883c2ff8e7b8008f4289a996e5879bf0bf6f Mon Sep 17 00:00:00 2001 From: Tien Date: Thu, 16 Jun 2022 09:57:45 +0700 Subject: [PATCH] handle super group profile screen --- .../java/com/sendbird/uikit/fragments/ChannelFragment.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/uikit/src/main/java/com/sendbird/uikit/fragments/ChannelFragment.java b/uikit/src/main/java/com/sendbird/uikit/fragments/ChannelFragment.java index 462cf897..6e925378 100644 --- a/uikit/src/main/java/com/sendbird/uikit/fragments/ChannelFragment.java +++ b/uikit/src/main/java/com/sendbird/uikit/fragments/ChannelFragment.java @@ -362,7 +362,7 @@ private void initHeaderOnReady(GroupChannel channel) { } binding.chvChannelHeader.setRightImageButtonClickListener(v -> { - if (memberIds.size() > 2) { + if (memberIds.size() > 2 || channel.isSuper()) { Intent intent = new Intent(StringSet.KEY_ACTION_OPEN_GROUP_PROFILE); intent.putExtra(StringSet.KEY_CHANNEL_URL, channel.getUrl()); requireContext().sendBroadcast(intent); @@ -373,7 +373,7 @@ private void initHeaderOnReady(GroupChannel channel) { } }); binding.chvChannelHeader.getTitleTextView().setOnClickListener(v -> { - if (memberIds.size() > 2) { + if (memberIds.size() > 2 || channel.isSuper()) { Intent intent = new Intent(StringSet.KEY_ACTION_OPEN_GROUP_PROFILE); intent.putExtra(StringSet.KEY_CHANNEL_URL, channel.getUrl()); requireContext().sendBroadcast(intent); @@ -384,7 +384,7 @@ private void initHeaderOnReady(GroupChannel channel) { } }); binding.chvChannelHeader.getProfileView().setOnClickListener(v -> { - if (memberIds.size() > 2) { + if (memberIds.size() > 2 || channel.isSuper()) { Intent intent = new Intent(StringSet.KEY_ACTION_OPEN_GROUP_PROFILE); intent.putExtra(StringSet.KEY_CHANNEL_URL, channel.getUrl()); requireContext().sendBroadcast(intent);