From fe0b42239631b9d2981aa278ed1d1114ca0ae3ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Romero?= Date: Mon, 30 Jul 2018 00:03:51 +0200 Subject: [PATCH] Fixes QoS display for TopicInfoEdit. Now 0 is the default QoS. --- src/main/java/com/adr/helloiot/TopicInfoEdit.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/adr/helloiot/TopicInfoEdit.java b/src/main/java/com/adr/helloiot/TopicInfoEdit.java index 1074f60..e48c21a 100644 --- a/src/main/java/com/adr/helloiot/TopicInfoEdit.java +++ b/src/main/java/com/adr/helloiot/TopicInfoEdit.java @@ -293,7 +293,7 @@ private String getFormatBadge(StringFormat f) { } private String getQOSBadge(int i) { - if (i < 0) { + if (i == 0) { return STYLEQOSSPACE; } else { return STYLEQOS + Integer.toString(i);