[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [orbot/master] only show notifications if we have data



commit 54a39f2046f0ce5048bbbb91a1659e4b8ddee621
Author: Nathan Freitas <nathan@xxxxxxxxxxx>
Date:   Wed Jul 16 17:07:08 2014 -0400

    only show notifications if we have data
---
 src/org/torproject/android/service/TorService.java |   12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/src/org/torproject/android/service/TorService.java b/src/org/torproject/android/service/TorService.java
index 574ee0a..2ab4c89 100644
--- a/src/org/torproject/android/service/TorService.java
+++ b/src/org/torproject/android/service/TorService.java
@@ -258,15 +258,17 @@ public class TorService extends Service implements TorServiceConstants, TorConst
 	 			Node node = hmBuiltNodes.get(key);
 	 			
 	 			if (node.ipAddress != null)
+	 			{
 	 				sbInfo.append(node.ipAddress);
 	 			
-	 			if (node.country != null)
-	 				sbInfo.append(' ').append(node.country);
+	 				if (node.country != null)
+	 					sbInfo.append(' ').append(node.country);
 	 			
-	 			if (node.organization != null)
-	 				sbInfo.append(" (").append(node.organization).append(')');
+	 				if (node.organization != null)
+	 					sbInfo.append(" (").append(node.organization).append(')');
 	 			
-	 			sbInfo.append('\n');
+	 				sbInfo.append('\n');
+	 			}
 	 			
 	 		}
 	 		



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits