I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit b080bd38 authored by sponge's avatar sponge
Browse files

If no participating tunnles, blank that status line out.

parent 7a429674
No related branches found
No related tags found
No related merge requests found
...@@ -320,10 +320,16 @@ public class MainActivity extends I2PActivityBase { ...@@ -320,10 +320,16 @@ public class MainActivity extends I2PActivityBase {
"\nNetwork: "+ netstatus + "\nNetwork: "+ netstatus +
"\nPeers active/known: " + active + " / " + known + "\nPeers active/known: " + active + " / " + known +
"\nExploratory Tunnels in/out: " + inEx + " / " + outEx + "\nExploratory Tunnels in/out: " + inEx + " / " + outEx +
"\nClient Tunnels in/out: " + inCl + " / " + outCl + "\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; // 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 = String details =
"\nBandwidth in/out: " + fmt.format(inBW) + " / " + fmt.format(outBW) + " KBps" + "\nBandwidth in/out: " + fmt.format(inBW) + " / " + fmt.format(outBW) + " KBps" +
...@@ -334,7 +340,7 @@ public class MainActivity extends I2PActivityBase { ...@@ -334,7 +340,7 @@ public class MainActivity extends I2PActivityBase {
"\nMsg Delay: " + msgDelay + "\nMsg Delay: " + msgDelay +
"\nUptime: " + uptime; "\nUptime: " + uptime;
_savedStatus = status + details; _savedStatus = status + participate + details;
tv.setText(_savedStatus); tv.setText(_savedStatus);
tv.setVisibility(View.VISIBLE); tv.setVisibility(View.VISIBLE);
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment