From e13e964fd3a122e4fc8f7e41953b1af2c14ab124 Mon Sep 17 00:00:00 2001 From: Mario Danic Date: Thu, 29 Nov 2018 14:01:33 +0100 Subject: [PATCH] Clean up --- .../java/com/nextcloud/talk/adapters/items/UserItem.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/com/nextcloud/talk/adapters/items/UserItem.java b/app/src/main/java/com/nextcloud/talk/adapters/items/UserItem.java index ad0bb6b40..419ba365b 100644 --- a/app/src/main/java/com/nextcloud/talk/adapters/items/UserItem.java +++ b/app/src/main/java/com/nextcloud/talk/adapters/items/UserItem.java @@ -211,12 +211,11 @@ public class UserItem extends AbstractFlexibleItem default: holder.voiceOrSimpleCallImageView.setVisibility(View.GONE); holder.videoCallImageView.setVisibility(View.GONE); + break; } - } - String userType = ""; + String userType = ""; - if (header == null) { switch (new EnumParticipantTypeConverter().convertToInt(participant.getType())) { case 1: userType = NextcloudTalkApplication.getSharedApplication().getString(R.string.nc_owner); @@ -234,7 +233,7 @@ public class UserItem extends AbstractFlexibleItem userType = NextcloudTalkApplication.getSharedApplication().getString(R.string.nc_following_link); break; default: - // do nothing + break; } holder.contactMentionId.setText(userType);