summaryrefslogtreecommitdiff
path: root/src/de/blinkt/openvpn/LogWindow.java
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2012-06-20 22:34:08 +0200
committerArne Schwabe <arne@rfc2549.org>2012-06-20 22:34:08 +0200
commitbc279dfd2cffaf8278ee0750aa2c05af9e4091e0 (patch)
tree03c5e7d12422cb17d1c1180450b9ee4afbb2cd99 /src/de/blinkt/openvpn/LogWindow.java
parentc30014c45e61a0712b5b74d0ecdf0cc44386c50f (diff)
parent47e1a6d2dd8e1416dcf4944c0258e999e7102677 (diff)
Merge with 4fe04f90d7c3f24b98e04e3258deb3e6d0ec51d0
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);
}
});