From 478238292c7d7b5042e9bf39ab902ad19a935c41 Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Thu, 13 Apr 2017 21:51:55 +0200 Subject: Removed unnecessary string builder --- .../java/de/pixart/messenger/ui/ConferenceDetailsActivity.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java b/src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java index 15b6097a3..8db6eafd8 100644 --- a/src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java +++ b/src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java @@ -658,12 +658,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()); } -- cgit v1.2.3