parent
8080734470
commit
fd03dac5cd
|
@ -285,6 +285,11 @@ public class NotificationListener extends NotificationListenerService {
|
||||||
|
|
||||||
NotificationCompat.WearableExtender wearableExtender = new NotificationCompat.WearableExtender(notification);
|
NotificationCompat.WearableExtender wearableExtender = new NotificationCompat.WearableExtender(notification);
|
||||||
List<NotificationCompat.Action> actions = wearableExtender.getActions();
|
List<NotificationCompat.Action> actions = wearableExtender.getActions();
|
||||||
|
|
||||||
|
if (actions.isEmpty() && notificationSpec.type == NotificationType.TELEGRAM) {
|
||||||
|
return; // workaround for duplicate telegram message
|
||||||
|
}
|
||||||
|
|
||||||
for (NotificationCompat.Action act : actions) {
|
for (NotificationCompat.Action act : actions) {
|
||||||
if (act != null && act.getRemoteInputs() != null) {
|
if (act != null && act.getRemoteInputs() != null) {
|
||||||
LOG.info("found wearable action: " + act.getTitle() + " " + sbn.getTag());
|
LOG.info("found wearable action: " + act.getTitle() + " " + sbn.getTag());
|
||||||
|
|
Loading…
Reference in New Issue