@Override protected void onResume() { super.onResume(); LocalBroadcastManager.getInstance(this).registerReceiver(mobiComKitBroadcastReceiver, BroadcastService.getIntentFilter()); LocalBroadcastManager.getInstance(this).registerReceiver(refreshBroadcast, getIntentFilter()); if (channel != null) { BroadcastService.currentInfoId = String.valueOf(channel.getKey()); Channel newChannel = ChannelService.getInstance(this).getChannelByChannelKey(channel.getKey()); if (newChannel != null && TextUtils.isEmpty(newChannel.getImageUrl())) { if (!channel.isBroadcastMessage()) { channelImage.setImageResource(R.drawable.applozic_group_icon); } else { channelImage.setImageResource(R.drawable.applozic_ic_applozic_broadcast); } } } }
} else if (channel.isBroadcastMessage()) { holder.groupIcon.setImageResource(R.drawable.applozic_ic_applozic_broadcast); } else {
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.channel_menu_option, menu); if (channel == null) { return true; } ChannelUserMapper loggedInUserMapper = ChannelService.getInstance(this).getChannelUserMapperByUserId(channel.getKey(), MobiComUserPreference.getInstance(ChannelInfoActivity.this).getUserId()); if (alCustomizationSettings.isHideGroupAddMembersButton() || loggedInUserMapper != null && ChannelUserMapper.UserRole.MEMBER.getValue().equals(loggedInUserMapper.getRole()) || (!ChannelUtils.isAdminUserId(userPreference.getUserId(), channel) && loggedInUserMapper != null && Integer.valueOf(0).equals(loggedInUserMapper.getRole()))) { menu.removeItem(R.id.add_member_to_channel); } if (alCustomizationSettings.isHideGroupNameUpdateButton() || channel.isBroadcastMessage()) { menu.removeItem(R.id.edit_channel_name); } return true; }
} else if (channel != null && channel.isBroadcastMessage()) { myholder.contactImage.setImageResource(R.drawable.applozic_ic_applozic_broadcast); } else if (channel != null && Channel.GroupType.SUPPORT_GROUP.getValue().equals(channel.getType())) {
channelImageLoader.setImageFadeIn(false); if (channelImage != null && !channel.isBroadcastMessage()) { channelImageLoader.loadImage(channel, channelImage); } else {