summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYves Fischer <yvesf-git@xapek.org>2014-08-17 11:52:47 +0200
committerYves Fischer <yvesf-git@xapek.org>2014-08-17 11:52:47 +0200
commit771682b8409d308665ee464db038de0158ec022b (patch)
tree999bc8afebb353d1f59769a91c4b0db3e1b0cfab
parent45b6bfcccc331d62c6984aea789cee6677144518 (diff)
downloadandiodine-771682b8409d308665ee464db038de0158ec022b.tar.gz
andiodine-771682b8409d308665ee464db038de0158ec022b.zip
Do not add newline for progress indicating '.' log-output from iodine
-rw-r--r--src/org/xapek/andiodine/FragmentStatus.java6
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);
}
}