OeffiMainActivity: Fix line concatenation when parsing messages.

This commit is contained in:
Andreas Schildbach 2018-08-07 16:03:59 +02:00
parent 10eb0e163d
commit 25eb33c551

View file

@ -589,13 +589,13 @@ public abstract class OeffiMainActivity extends OeffiActivity {
final String key = m.group(1);
final String value = m.group(2).trim();
message.putString(key, value + " ");
message.putString(key, value);
lastKey = key;
} else if (lastKey != null) {
if (line.isEmpty())
line = "\n\n";
message.putString(lastKey, message.getString(lastKey) + line);
message.putString(lastKey, message.getString(lastKey) + " " + line);
} else {
throw new IllegalStateException("line needs to match 'key: value': '" + line + "'");
}