Update PersistentNotificationPlugin.java
- remove double call from addMessage - add comments
This commit is contained in:
parent
7497eade82
commit
3310c6d618
|
@ -205,7 +205,8 @@ public class PersistentNotificationPlugin extends PluginBase {
|
||||||
.setLatestTimestamp(System.currentTimeMillis())
|
.setLatestTimestamp(System.currentTimeMillis())
|
||||||
.setReadPendingIntent(msgReadPendingIntent)
|
.setReadPendingIntent(msgReadPendingIntent)
|
||||||
.setReplyAction(msgReplyPendingIntent, remoteInput);
|
.setReplyAction(msgReplyPendingIntent, remoteInput);
|
||||||
|
|
||||||
|
/// Add dot to produce a "more natural sounding result"
|
||||||
unreadConversationBuilder.addMessage(line1 + ". " + line2 + ". " + line3);
|
unreadConversationBuilder.addMessage(line1 + ". " + line2 + ". " + line3);
|
||||||
/// End Android Auto
|
/// End Android Auto
|
||||||
|
|
||||||
|
@ -229,7 +230,6 @@ public class PersistentNotificationPlugin extends PluginBase {
|
||||||
/// Android Auto
|
/// Android Auto
|
||||||
builder.extend(new NotificationCompat.CarExtender()
|
builder.extend(new NotificationCompat.CarExtender()
|
||||||
.setUnreadConversation(unreadConversationBuilder.build()));
|
.setUnreadConversation(unreadConversationBuilder.build()));
|
||||||
unreadConversationBuilder.addMessage(line1+line2+line3);
|
|
||||||
/// End Android Auto
|
/// End Android Auto
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue