summaryrefslogtreecommitdiff
path: root/src/de/blinkt/openvpn/LogWindow.java
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2012-06-20 22:30:53 +0200
committerArne Schwabe <arne@rfc2549.org>2012-06-20 22:30:53 +0200
commit47e1a6d2dd8e1416dcf4944c0258e999e7102677 (patch)
treeda2e4a094a3e352ce7a842cba86d29864947c0a2 /src/de/blinkt/openvpn/LogWindow.java
parente8ea1db33db4fb9b4ef360125d2ec95071cd6424 (diff)
parente9b93deeff850a113870e1b27bde251d266b9d7c (diff)
merge
Diffstat (limited to 'src/de/blinkt/openvpn/LogWindow.java')
-rw-r--r--src/de/blinkt/openvpn/LogWindow.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/de/blinkt/openvpn/LogWindow.java b/src/de/blinkt/openvpn/LogWindow.java
index 6060e7ad..ae5277cd 100644
--- a/src/de/blinkt/openvpn/LogWindow.java
+++ b/src/de/blinkt/openvpn/LogWindow.java
@@ -271,12 +271,15 @@ public class LogWindow extends ListActivity implements StateListener {
}
@Override
- public void updateState(final String logmessage) {
+ public void updateState(final String status,final String logmessage) {
runOnUiThread(new Runnable() {
@Override
public void run() {
- mSpeedView.setText(logmessage);
+ String prefix=status+ ":";
+ if (status.equals("BYTECOUNT") || status.equals("NOPROCESS") )
+ prefix="";
+ mSpeedView.setText(prefix + logmessage);
}
});