diff options
author | Yves Fischer <yvesf-git@xapek.org> | 2014-08-17 11:52:47 +0200 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2014-08-17 11:52:47 +0200 |
commit | 771682b8409d308665ee464db038de0158ec022b (patch) | |
tree | 999bc8afebb353d1f59769a91c4b0db3e1b0cfab /src | |
parent | 45b6bfcccc331d62c6984aea789cee6677144518 (diff) | |
download | andiodine-771682b8409d308665ee464db038de0158ec022b.tar.gz andiodine-771682b8409d308665ee464db038de0158ec022b.zip |
Do not add newline for progress indicating '.' log-output from iodine
Diffstat (limited to 'src')
-rw-r--r-- | src/org/xapek/andiodine/FragmentStatus.java | 6 |
1 files 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); } } |