From 41112d29bdb7204e87bc1dbccb68a6594aaf5635 Mon Sep 17 00:00:00 2001 From: cijo-saju Date: Sat, 8 Apr 2017 10:12:40 +0530 Subject: [PATCH] Removed unnecessary string builder --- .../siacs/conversations/ui/ConferenceDetailsActivity.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main/java/eu/siacs/conversations/ui/ConferenceDetailsActivity.java b/src/main/java/eu/siacs/conversations/ui/ConferenceDetailsActivity.java index cf4984f6c..378e61c6e 100644 --- a/src/main/java/eu/siacs/conversations/ui/ConferenceDetailsActivity.java +++ b/src/main/java/eu/siacs/conversations/ui/ConferenceDetailsActivity.java @@ -637,12 +637,8 @@ public class ConferenceDetailsActivity extends XmppActivity implements OnConvers private String getStatus(User user) { if (mAdvancedMode) { - StringBuilder builder = new StringBuilder(); - builder.append(getString(user.getAffiliation().getResId())); - builder.append(" ("); - builder.append(getString(user.getRole().getResId())); - builder.append(')'); - return builder.toString(); + return getString(user.getAffiliation().getResId()) + + " (" + getString(user.getRole().getResId()) + ')'; } else { return getString(user.getAffiliation().getResId()); }