From 3310c6d61888f4590045a421f8f6d0605d3b745d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Beloncle?= Date: Wed, 14 Nov 2018 11:07:00 +0100 Subject: [PATCH] Update PersistentNotificationPlugin.java - remove double call from addMessage - add comments --- .../Persistentnotification/PersistentNotificationPlugin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Persistentnotification/PersistentNotificationPlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/Persistentnotification/PersistentNotificationPlugin.java index a8151fcba7..cae5da7d75 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Persistentnotification/PersistentNotificationPlugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Persistentnotification/PersistentNotificationPlugin.java @@ -205,7 +205,8 @@ public class PersistentNotificationPlugin extends PluginBase { .setLatestTimestamp(System.currentTimeMillis()) .setReadPendingIntent(msgReadPendingIntent) .setReplyAction(msgReplyPendingIntent, remoteInput); - + + /// Add dot to produce a "more natural sounding result" unreadConversationBuilder.addMessage(line1 + ". " + line2 + ". " + line3); /// End Android Auto @@ -229,7 +230,6 @@ public class PersistentNotificationPlugin extends PluginBase { /// Android Auto builder.extend(new NotificationCompat.CarExtender() .setUnreadConversation(unreadConversationBuilder.build())); - unreadConversationBuilder.addMessage(line1+line2+line3); /// End Android Auto