aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2017-04-13 21:51:55 +0200
committerChristian Schneppe <christian@pix-art.de>2017-04-13 21:51:55 +0200
commit478238292c7d7b5042e9bf39ab902ad19a935c41 (patch)
treec282c9ccd808fa43a70ed7099574991a96bf1fa9
parent8f1ed13b9b572a50a297eeee41e9f73ec2fc3705 (diff)
Removed unnecessary string builder
-rw-r--r--src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java8
1 files 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());
}