diff --git a/src/org/kde/kdeconnect/Plugins/TelephonyPlugin/TelephonyPlugin.java b/src/org/kde/kdeconnect/Plugins/TelephonyPlugin/TelephonyPlugin.java index d0237214..7fd9da60 100644 --- a/src/org/kde/kdeconnect/Plugins/TelephonyPlugin/TelephonyPlugin.java +++ b/src/org/kde/kdeconnect/Plugins/TelephonyPlugin/TelephonyPlugin.java @@ -233,16 +233,11 @@ public class TelephonyPlugin extends Plugin { np.set("event","sms"); - String messageBody = new String(); - - for (int index = 0; index < messages.size(); index ++) - { - messageBody += messages.get(index).getMessageBody(); - } - - if (messageBody != null) { - np.set("messageBody",messageBody); + StringBuilder messageBody = new StringBuilder(); + for (int index = 0; index < messages.size(); index ++) { + messageBody.append(messages.get(index).getMessageBody()); } + np.set("messageBody", messageBody.toString()); String phoneNumber = messages.get(0).getOriginatingAddress();