UI binding can never be null

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2022-12-29 11:14:16 +01:00
parent 9ae722659f
commit b36195dc9a
No known key found for this signature in database
GPG Key ID: 6CADC7E3523C308B

View File

@ -196,7 +196,6 @@ public class ParticipantItem extends AbstractFlexibleItem<ParticipantItem.Partic
holder.binding.videoCallIcon.setVisibility(View.GONE); holder.binding.videoCallIcon.setVisibility(View.GONE);
} }
if (holder.binding.secondaryText != null) {
String userType = ""; String userType = "";
switch (new EnumParticipantTypeConverter().convertToInt(participant.getType())) { switch (new EnumParticipantTypeConverter().convertToInt(participant.getType())) {
@ -254,7 +253,6 @@ public class ParticipantItem extends AbstractFlexibleItem<ParticipantItem.Partic
holder.binding.secondaryText.setText("(" + userType + ")"); holder.binding.secondaryText.setText("(" + userType + ")");
} }
} }
}
private void drawStatus(ParticipantItemViewHolder holder) { private void drawStatus(ParticipantItemViewHolder holder) {
float size = DisplayUtils.convertDpToPixel(STATUS_SIZE_IN_DP, context); float size = DisplayUtils.convertDpToPixel(STATUS_SIZE_IN_DP, context);