Update PersistentNotificationPlugin.java

-  remove double call from addMessage
- add comments
This commit is contained in:
Grégory Beloncle 2018-11-14 11:07:00 +01:00 committed by GitHub
parent 7497eade82
commit 3310c6d618
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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