From 771682b8409d308665ee464db038de0158ec022b Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Sun, 17 Aug 2014 11:52:47 +0200 Subject: Do not add newline for progress indicating '.' log-output from iodine --- src/org/xapek/andiodine/FragmentStatus.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/org/xapek/andiodine/FragmentStatus.java b/src/org/xapek/andiodine/FragmentStatus.java index ee14562..c12afd9 100644 --- a/src/org/xapek/andiodine/FragmentStatus.java +++ b/src/org/xapek/andiodine/FragmentStatus.java @@ -57,8 +57,10 @@ public class FragmentStatus extends Fragment { @Override public void onReceive(Context context, Intent intent) { if (IodineClient.ACTION_LOG_MESSAGE.equals(intent.getAction())) { - mLogmessages.append("\n"); - mLogmessages.append(intent.getStringExtra(IodineClient.EXTRA_MESSAGE)); + final String newLogEntry = intent.getStringExtra(IodineClient.EXTRA_MESSAGE); + if (!".".equals(newLogEntry)) // Suppress newline for progress indicator'.' + mLogmessages.append("\n"); + mLogmessages.append(newLogEntry); mScrollview.fullScroll(View.FOCUS_DOWN); } } -- cgit v1.2.1