From 54a39f2046f0ce5048bbbb91a1659e4b8ddee621 Mon Sep 17 00:00:00 2001 From: Nathan Freitas Date: Wed, 16 Jul 2014 17:07:08 -0400 Subject: [PATCH] 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 574ee0ae..2ab4c897 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'); + } }