From b080bd387aee383ca0f4bcdfbf4add57a0c1d6eb Mon Sep 17 00:00:00 2001 From: sponge <sponge@mail.i2p> Date: Tue, 4 Sep 2012 12:19:24 +0000 Subject: [PATCH] If no participating tunnles, blank that status line out. --- .../android/router/activity/MainActivity.java | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/net/i2p/android/router/activity/MainActivity.java b/src/net/i2p/android/router/activity/MainActivity.java index 9cbc78596..b529af7fa 100644 --- a/src/net/i2p/android/router/activity/MainActivity.java +++ b/src/net/i2p/android/router/activity/MainActivity.java @@ -320,10 +320,16 @@ public class MainActivity extends I2PActivityBase { "\nNetwork: "+ netstatus + "\nPeers active/known: " + active + " / " + known + "\nExploratory Tunnels in/out: " + inEx + " / " + outEx + - "\nClient Tunnels in/out: " + inCl + " / " + outCl + - // Need to see if we have the participation option set to on. - // I thought there was a router setting for that? - "\nParticipating: " + part; + "\nClient Tunnels in/out: " + inCl + " / " + outCl; + + + // Need to see if we have the participation option set to on. + // I thought there was a router setting for that? + // For now, if zero, don't show anything. This is done to not aleart the + // end user into thinking that this router must participate. + String participate = ""; + if(part != 0) + participate = "\nParticipating: " + part; String details = "\nBandwidth in/out: " + fmt.format(inBW) + " / " + fmt.format(outBW) + " KBps" + @@ -334,7 +340,7 @@ public class MainActivity extends I2PActivityBase { "\nMsg Delay: " + msgDelay + "\nUptime: " + uptime; - _savedStatus = status + details; + _savedStatus = status + participate + details; tv.setText(_savedStatus); tv.setVisibility(View.VISIBLE); } else { -- GitLab